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:
@@ -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
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user