1
0
mirror of https://github.com/arsenetar/dupeguru.git synced 2026-03-12 19:41:38 +00:00

Refactor comments

This commit is contained in:
Luca Falavigna
2024-02-19 16:35:23 +01:00
parent 36212e0883
commit a8b98ccf59
2 changed files with 4 additions and 2 deletions

View File

@@ -76,7 +76,8 @@ def smart_copy(source_path: Path, dest_path: Path) -> None:
try:
_smart_move_or_copy(shutil.copy, source_path, dest_path)
except OSError as e:
if e.errno in (EISDIR, EACCES): # it's a directory
# It's a directory, code is 21 on OS X / Linux (EISDIR) and 13 on Windows (EACCES)
if e.errno in (EISDIR, EACCES):
_smart_move_or_copy(shutil.copytree, source_path, dest_path)
else:
raise