Skip to content

Commit 23f7388

Browse files
remove_dotdot_prefixes: remove bad assert, fixes #9406
guess the assert was meant to make sure that we do not have backslashes as path separators, but did not consider that on linux a backslash can be part of a filename (without being a path separator).
1 parent 3e15918 commit 23f7388

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)