Skip to content

Commit 2088263

Browse files
committed
fix(codetide): normalize path handling to preserve trailing slashes
1 parent 1ba2354 commit 2088263

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

codetide/__init__.py

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -723,8 +723,11 @@ def get_unique_paths(path_list):
723723
unique_paths = []
724724

725725
for path in path_list:
726-
# Normalize the path to use OS-appropriate separators
727-
normalized = os.path.normpath(path)
726+
if isinstance(path, str) and path.endswith("/"):
727+
normalized = path
728+
else:
729+
# Normalize the path to use OS-appropriate separators
730+
normalized = os.path.normpath(path)
728731

729732
# Only add if we haven't seen this normalized path before
730733
if normalized not in seen:

0 commit comments

Comments
 (0)