summaryrefslogtreecommitdiff
path: root/src/leap/bitmask/backend
diff options
context:
space:
mode:
Diffstat (limited to 'src/leap/bitmask/backend')
-rw-r--r--src/leap/bitmask/backend/utils.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/leap/bitmask/backend/utils.py b/src/leap/bitmask/backend/utils.py
index b71fab9e..54a16fd7 100644
--- a/src/leap/bitmask/backend/utils.py
+++ b/src/leap/bitmask/backend/utils.py
@@ -23,6 +23,7 @@ import shutil
import zmq.auth
from leap.bitmask.util import get_path_prefix
+from leap.common.files import mkdir_p
KEYS_DIR = os.path.join(get_path_prefix(), 'leap', 'zmq_certificates')
@@ -34,7 +35,7 @@ def generate_certificates():
# Create directory for certificates, remove old content if necessary
if os.path.exists(KEYS_DIR):
shutil.rmtree(KEYS_DIR)
- os.mkdir(KEYS_DIR)
+ mkdir_p(KEYS_DIR)
# create new keys in certificates dir
# public_file, secret_file = create_certificates(...)