This commit is contained in:
Kovid Goyal 2023-06-11 18:24:24 +05:30
parent 1e38b55924
commit 97ad986ace
No known key found for this signature in database
GPG Key ID: 06BC317B515ACE7C

View File

@ -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: