From 34f26fcd086e72e1057bd67da50f1af0a1f31bef Mon Sep 17 00:00:00 2001
From: Giorgos Korfiatis <gkorf@grnet.gr>
Date: Fri, 31 Jul 2015 14:16:00 +0300
Subject: [PATCH] Use os.makedirs() to make config and cache dirs

---
 agkyra/config.py       | 2 +-
 agkyra/syncer/setup.py | 2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/agkyra/config.py b/agkyra/config.py
index d1de923..138112e 100644
--- a/agkyra/config.py
+++ b/agkyra/config.py
@@ -48,7 +48,7 @@ if os.path.exists(AGKYRA_DIR):
     if not os.path.isdir(AGKYRA_DIR):
         raise Exception("Cannot create dir '%s'; file exists" % AGKYRA_DIR)
 else:
-    os.mkdir(AGKYRA_DIR)
+    os.makedirs(AGKYRA_DIR)
 
 CONFIG_PATH = os.path.join(AGKYRA_DIR, 'config.rc')
 config.CONFIG_PATH = CONFIG_PATH
diff --git a/agkyra/syncer/setup.py b/agkyra/syncer/setup.py
index fb06c2f..abda12d 100644
--- a/agkyra/syncer/setup.py
+++ b/agkyra/syncer/setup.py
@@ -239,7 +239,7 @@ class SyncerSettings():
                 return
             raise Exception("Cannot create dir '%s'; file exists" % path)
         logger.warning("Creating dir: '%s'" % path)
-        os.mkdir(path)
+        os.makedirs(path)
         return path
 
     @ssl_fall_back
-- 
GitLab