We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent c18c782 commit 29f50acCopy full SHA for 29f50ac
src/murfey/util/__init__.py
@@ -64,7 +64,9 @@ def sanitise_nonpath(in_string: str) -> str:
64
65
def secure_path(in_path: Path, keep_spaces: bool = False) -> Path:
66
if keep_spaces:
67
- secured_parts = [secure_filename(p) for p in in_path.parts if " " not in p]
+ secured_parts = [
68
+ secure_filename(p) if " " not in p else p for p in in_path.parts
69
+ ]
70
else:
71
secured_parts = [secure_filename(p) for p in in_path.parts]
72
return Path("/".join(secured_parts))
0 commit comments