From 272f0eb003bb639c35555ab9c32313601437fa41 Mon Sep 17 00:00:00 2001 From: Elijah Ahianyo Date: Thu, 29 Jun 2023 23:01:31 +0000 Subject: [PATCH] Bugfix: Some Pages are not Generated: (#1278) Fix issue with some pages not being generated --- reflex/utils/path_ops.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/reflex/utils/path_ops.py b/reflex/utils/path_ops.py index 069fa1e79..6cf321188 100644 --- a/reflex/utils/path_ops.py +++ b/reflex/utils/path_ops.py @@ -71,8 +71,7 @@ def mkdir(path: str): Args: 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: