Skip to content

Commit b6ccd15

Browse files
GregoryComermalfet
authored andcommitted
Use shutil.move instead of os.rename for moving downloaded model artifacts (#387)
1 parent 3f5ab7f commit b6ccd15

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

download.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -93,7 +93,7 @@ def download_and_convert(
9393
# overwriting if necessary.
9494
if os.path.isdir(model_dir):
9595
shutil.rmtree(model_dir)
96-
os.rename(temp_dir, model_dir)
96+
shutil.move(temp_dir, model_dir)
9797

9898
finally:
9999
if os.path.isdir(temp_dir):

0 commit comments

Comments
 (0)