mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-07-09 03:04:10 -04:00
Fix #2023476 [Linux error in new trash management](https://bugs.launchpad.net/calibre/+bug/2023476)
This commit is contained in:
parent
1e38b55924
commit
97ad986ace
@ -49,7 +49,8 @@ class UnixFileCopier:
|
|||||||
os.link(src_path, dest_path, follow_symlinks=False)
|
os.link(src_path, dest_path, follow_symlinks=False)
|
||||||
shutil.copystat(src_path, dest_path, follow_symlinks=False)
|
shutil.copystat(src_path, dest_path, follow_symlinks=False)
|
||||||
continue
|
continue
|
||||||
shutil.copy2(src_path, dest_path, follow_symlinks=False)
|
with suppress(shutil.SameFileError):
|
||||||
|
shutil.copy2(src_path, dest_path, follow_symlinks=False)
|
||||||
|
|
||||||
def delete_all_source_files(self) -> None:
|
def delete_all_source_files(self) -> None:
|
||||||
for src_path in self.copy_map:
|
for src_path in self.copy_map:
|
||||||
|
Loading…
x
Reference in New Issue
Block a user