Ver Fonte

Bugfix: Some Pages are not Generated: (#1278)

Fix issue with some pages not being generated
Elijah Ahianyo há 1 ano atrás
pai
commit
272f0eb003
1 ficheiros alterados com 1 adições e 2 exclusões
  1. 1 2
      reflex/utils/path_ops.py

+ 1 - 2
reflex/utils/path_ops.py

@@ -71,8 +71,7 @@ def mkdir(path: str):
     Args:
     Args:
         path: The path to the directory.
         path: The path to the directory.
     """
     """
-    if not os.path.exists(path):
-        os.makedirs(path)
+    os.makedirs(path, exist_ok=True)
 
 
 
 
 def ln(src: str, dest: str, overwrite: bool = False) -> bool:
 def ln(src: str, dest: str, overwrite: bool = False) -> bool: