mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-07-09 03:04:10 -04:00
...
This commit is contained in:
parent
c3da25d112
commit
e20e7f1d51
@ -225,11 +225,9 @@ def copy_tree(
|
||||
with copier:
|
||||
copier.copy_all()
|
||||
|
||||
if delete_source:
|
||||
if delete_source and os.path.exists(make_long_path_useable(src)):
|
||||
try:
|
||||
shutil.rmtree(make_long_path_useable(src))
|
||||
except FileNotFoundError:
|
||||
pass
|
||||
except OSError:
|
||||
if iswindows:
|
||||
time.sleep(WINDOWS_SLEEP_FOR_RETRY_TIME)
|
||||
|
Loading…
x
Reference in New Issue
Block a user