Browse Source

fix mkdir

Bastien Sevajol 6 years ago
parent
commit
308ccfbe3a
1 changed files with 2 additions and 2 deletions
  1. 2 2
      synergine2_cocos2d/util.py

+ 2 - 2
synergine2_cocos2d/util.py View File

58
     :param clear_dir: Remove content of given dir
58
     :param clear_dir: Remove content of given dir
59
     """
59
     """
60
     path_ = Path(dir_path)
60
     path_ = Path(dir_path)
61
-    path_.mkdir(parents=True)
61
+    path_.mkdir(parents=False, exist_ok=True)
62
     if clear_dir:
62
     if clear_dir:
63
         shutil.rmtree(dir_path)
63
         shutil.rmtree(dir_path)
64
-        path_.mkdir(parents=True)
64
+        path_.mkdir(parents=False, exist_ok=True)