Commit 34f26fcd authored by Giorgos Korfiatis's avatar Giorgos Korfiatis
Browse files

Use os.makedirs() to make config and cache dirs

parent d3c4cb63
......@@ -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
......
......@@ -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
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment