mirror of
https://github.com/borgbackup/borg.git
synced 2026-06-14 20:13:21 -04:00
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).
This commit is contained in:
parent
3e15918b82
commit
23f7388e21
1 changed files with 0 additions and 1 deletions
|
|
@ -328,7 +328,6 @@ def remove_dotdot_prefixes(path):
|
|||
|
||||
`path` is expected to be normalized already (e.g. via `posixpath.normpath()`).
|
||||
"""
|
||||
assert "\\" not in path
|
||||
if is_win32:
|
||||
if len(path) > 1 and path[1] == ":":
|
||||
path = path.replace(":", "", 1)
|
||||
|
|
|
|||
Loading…
Reference in a new issue