summaryrefslogtreecommitdiff
path: root/src/leap
diff options
context:
space:
mode:
authorIvan Alejandro <ivanalejandro0@gmail.com>2014-07-14 14:32:28 -0300
committerIvan Alejandro <ivanalejandro0@gmail.com>2014-07-14 14:58:34 -0300
commitfad58792a499f5b3e7ef28c68d0bae7f055c603d (patch)
treeb82b69e1c3a1d7b72db75687d457019a875ed750 /src/leap
parentd6cee5b46587367b558863292f71f5baafadc762 (diff)
Use custom `mkdir` to create the tree if needed.
Diffstat (limited to 'src/leap')
-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(...)