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,6 +49,7 @@ class UnixFileCopier:
|
||||
os.link(src_path, dest_path, follow_symlinks=False)
|
||||
shutil.copystat(src_path, dest_path, follow_symlinks=False)
|
||||
continue
|
||||
with suppress(shutil.SameFileError):
|
||||
shutil.copy2(src_path, dest_path, follow_symlinks=False)
|
||||
|
||||
def delete_all_source_files(self) -> None:
|
||||
|
Loading…
x
Reference in New Issue
Block a user