diff options
Diffstat (limited to 'modules/modelloader.py')
-rw-r--r-- | modules/modelloader.py | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/modules/modelloader.py b/modules/modelloader.py index b2f0bb71..098bcb79 100644 --- a/modules/modelloader.py +++ b/modules/modelloader.py @@ -118,8 +118,7 @@ def cleanup_models(): def move_files(src_path: str, dest_path: str, ext_filter: str = None): try: - if not os.path.exists(dest_path): - os.makedirs(dest_path) + os.makedirs(dest_path, exist_ok=True) if os.path.exists(src_path): for file in os.listdir(src_path): fullpath = os.path.join(src_path, file) |