Skip to content

Commit 49959db

Browse files
Merge pull request #9407 from ThomasWaldmann/fix-filename-backslash
remove_dotdot_prefixes: remove bad assert, fixes #9406
2 parents 3e15918 + 23f7388 commit 49959db

File tree

1 file changed

+0
-1
lines changed

1 file changed

+0
-1
lines changed

src/borg/helpers/fs.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -328,7 +328,6 @@ def remove_dotdot_prefixes(path):
328328
329329
`path` is expected to be normalized already (e.g. via `posixpath.normpath()`).
330330
"""
331-
assert "\\" not in path
332331
if is_win32:
333332
if len(path) > 1 and path[1] == ":":
334333
path = path.replace(":", "", 1)

0 commit comments

Comments
 (0)