Bastien Sevajol 6 vuotta sitten
vanhempi
commit
bb543480a3
1 muutettua tiedostoa jossa 2 lisäystä ja 2 poistoa
  1. 2 2
      synergine2_cocos2d/util.py

+ 2 - 2
synergine2_cocos2d/util.py Näytä tiedosto

@@ -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)