This is an automated email from the ASF dual-hosted git repository.

sbp pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/tooling-trusted-releases.git


The following commit(s) were added to refs/heads/main by this push:
     new e7cda83  Add debugging for a file movement issue
e7cda83 is described below

commit e7cda83339f549bc5d7f8082b6aa477646a2b504
Author: Sean B. Palmer <[email protected]>
AuthorDate: Mon Nov 3 17:40:11 2025 +0000

    Add debugging for a file movement issue
---
 atr/util.py | 12 +++++++++++-
 1 file changed, 11 insertions(+), 1 deletion(-)

diff --git a/atr/util.py b/atr/util.py
index 4618588..00792b1 100644
--- a/atr/util.py
+++ b/atr/util.py
@@ -1018,7 +1018,17 @@ async def _create_hard_link_clone_checks(
 
     # Create destination directory
     if do_not_create_dest_dir is False:
-        await aiofiles.os.makedirs(dest_dir, exist_ok=exist_ok)
+        try:
+            await aiofiles.os.makedirs(dest_dir, exist_ok=exist_ok)
+        except FileExistsError:
+            log.error(
+                f"Arguments to __create_hard_link_clone_checks: "
+                f"source_dir={source_dir}, "
+                f"dest_dir={dest_dir}, "
+                f"do_not_create_dest_dir={do_not_create_dest_dir}, "
+                f"exist_ok={exist_ok}"
+            )
+            raise
 
 
 def _generate_hexdump(data: bytes) -> str:


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to