Fix indentation for raising CollidingPathError

This commit is contained in:
Peter Bieringer
2026-03-01 08:54:32 +01:00
committed by GitHub
parent d3018a4c06
commit 8121ec0a84

View File

@@ -287,8 +287,8 @@ def path_to_filesystem(root: str, sane_path: str) -> str:
# Check for conflicting files (e.g. case-insensitive file systems
# or short names on Windows file systems)
if (os.path.lexists(safe_path) and
not os.path.realpath(safe_path).endswith(part)):
raise CollidingPathError(part)
not os.path.realpath(safe_path).endswith(part)):
raise CollidingPathError(part)
return safe_path