mirror of
https://github.com/clearml/clearml
synced 2025-03-03 10:42:00 +00:00
Fix cache handling for different partitions/drives/devices
This commit is contained in:
parent
ce483521ef
commit
de068cc390
@ -108,7 +108,7 @@ class StorageManager(object):
|
||||
try:
|
||||
# if rename fails, it means that someone else already manged to extract the zip, delete the current
|
||||
# folder and return the already existing cached zip folder
|
||||
os.rename(temp_target_folder, str(target_folder))
|
||||
shutil.move(temp_target_folder, str(target_folder))
|
||||
except Exception:
|
||||
if target_folder.exists():
|
||||
target_folder.touch(exist_ok=True)
|
||||
|
Loading…
Reference in New Issue
Block a user