diff options
author | AUTOMATIC <16777216c@gmail.com> | 2023-06-27 08:37:46 +0300 |
---|---|---|
committer | AUTOMATIC <16777216c@gmail.com> | 2023-06-27 08:37:46 +0300 |
commit | 6ac247317d0de9a54657c5913b8cf18c130543ab (patch) | |
tree | b0e9b9d93f90b5d50084292a48578bd4f9a83ec6 /modules/modelloader.py | |
parent | 59419bd64a1581caccaac04dceb66c1c069a2db1 (diff) | |
parent | dbc88c96450793b08b520f3b86cd46d6aeaaae52 (diff) |
Merge branch 'release_candidate' into dev
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 be23071a..75f01247 100644 --- a/modules/modelloader.py +++ b/modules/modelloader.py @@ -95,8 +95,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) |