Skip to content

Commit e7cda83

Browse files
committed
Add debugging for a file movement issue
1 parent 346ef50 commit e7cda83

File tree

1 file changed

+11
-1
lines changed

1 file changed

+11
-1
lines changed

atr/util.py

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1018,7 +1018,17 @@ async def _create_hard_link_clone_checks(
10181018

10191019
# Create destination directory
10201020
if do_not_create_dest_dir is False:
1021-
await aiofiles.os.makedirs(dest_dir, exist_ok=exist_ok)
1021+
try:
1022+
await aiofiles.os.makedirs(dest_dir, exist_ok=exist_ok)
1023+
except FileExistsError:
1024+
log.error(
1025+
f"Arguments to __create_hard_link_clone_checks: "
1026+
f"source_dir={source_dir}, "
1027+
f"dest_dir={dest_dir}, "
1028+
f"do_not_create_dest_dir={do_not_create_dest_dir}, "
1029+
f"exist_ok={exist_ok}"
1030+
)
1031+
raise
10221032

10231033

10241034
def _generate_hexdump(data: bytes) -> str:

0 commit comments

Comments
 (0)