mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-07-09 03:04:10 -04:00
Increase rename retries since we could have file sync programs in the mix as well
This commit is contained in:
parent
f0b3091a18
commit
cc54251368
@ -60,7 +60,7 @@ def robust_rmtree(x):
|
|||||||
|
|
||||||
|
|
||||||
def robust_rename(a, b):
|
def robust_rename(a, b):
|
||||||
retries = 10 if iswindows else 1 # retry on windows to get around the idiotic mandatory file locking
|
retries = 20 if iswindows else 1 # retry on windows to get around the idiotic mandatory file locking
|
||||||
for i in range(retries):
|
for i in range(retries):
|
||||||
try:
|
try:
|
||||||
os.rename(a, b)
|
os.rename(a, b)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user