mirror of
https://github.com/lrnselfreliance/wrolpi.git
synced 2026-11-20 23:16:17 -05:00
Removing ! character from file names.
This commit is contained in:
parent
f94837299d
commit
1ede5f3f55
2 changed files with 2 additions and 1 deletions
|
|
@ -739,7 +739,7 @@ def walk(path: Path) -> Generator[Path, None, None]:
|
|||
|
||||
|
||||
# These characters are invalid in Windows or Linux.
|
||||
INVALID_FILE_CHARS = re.compile(r'[/<>:\|"\\\?\*%]')
|
||||
INVALID_FILE_CHARS = re.compile(r'[/<>:\|"\\\?\*%!]')
|
||||
|
||||
|
||||
def escape_file_name(name: str) -> str:
|
||||
|
|
|
|||
|
|
@ -292,6 +292,7 @@ def test_zig_zag(low, high, expected):
|
|||
('foo*', 'foo'),
|
||||
('foo&', 'foo&'),
|
||||
('foo%', 'foo'),
|
||||
('foo!', 'foo'),
|
||||
]
|
||||
)
|
||||
def test_escape_file_name(name, expected):
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue