diff --git a/radicale/pathutils.py b/radicale/pathutils.py index 1be03232..fc6504b8 100644 --- a/radicale/pathutils.py +++ b/radicale/pathutils.py @@ -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