Skip to content

Commit 583a92b

Browse files
committed
Add colons back into paths at the end of parts to cover MSYS2 style paths
1 parent 625ca1f commit 583a92b

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

src/murfey/util/__init__.py

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -78,7 +78,10 @@ def secure_path(in_path: Path, keep_spaces: bool = False) -> Path:
7878
secure_filename(p) if " " not in p else p for p in in_path.parts
7979
]
8080
else:
81-
secured_parts = [secure_filename(p) for p in in_path.parts]
81+
secured_parts = [
82+
secure_filename(p) + ":" if p.endswith(":") else secure_filename(p)
83+
for p in in_path.parts
84+
]
8285
return Path("/".join(secured_parts))
8386

8487

0 commit comments

Comments
 (0)