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: