1
0
mirror of https://github.com/deadc0de6/dotdrop.git synced 2026-02-05 10:18:49 +00:00

do not mkdir when already exists in tests

This commit is contained in:
deadc0de6
2017-03-15 21:39:01 +01:00
parent 17526caef9
commit 46f38f7080

View File

@@ -49,7 +49,8 @@ def create_random_file(folder, content=None):
def create_dir(path):
'''Create a folder'''
os.mkdir(path)
if not os.path.exists(path):
os.mkdir(path)
return path