Browse Source

fix mkdir

Bastien Sevajol 7 years ago
parent
commit
bb543480a3
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,7 +58,7 @@ def ensure_dir_exist(dir_path, clear_dir: bool=False) -> None:
58 58
     :param clear_dir: Remove content of given dir
59 59
     """
60 60
     path_ = Path(dir_path)
61
-    path_.mkdir(parents=False, exist_ok=True)
61
+    path_.mkdir(parents=True, exist_ok=True)
62 62
     if clear_dir:
63 63
         shutil.rmtree(dir_path)
64
-        path_.mkdir(parents=False, exist_ok=True)
64
+        path_.mkdir(parents=True, exist_ok=True)