mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-07-09 03:04:10 -04:00
...
This commit is contained in:
parent
62095818fa
commit
e88c683aad
@ -337,6 +337,8 @@ class Restore(Thread):
|
||||
old_notes_path = os.path.join(self.src_library_path, NOTES_DIR_NAME)
|
||||
new_notes_path = os.path.join(self.library_path, NOTES_DIR_NAME)
|
||||
temp = old_notes_path + '-staging'
|
||||
with suppress(OSError):
|
||||
shutil.rmtree(temp)
|
||||
try:
|
||||
shutil.move(new_notes_path, temp)
|
||||
except OSError:
|
||||
|
Loading…
x
Reference in New Issue
Block a user