-
-
Notifications
You must be signed in to change notification settings - Fork 827
Description
with borg's native windows build, users might use backslashes for pathes when invoking borg.
as borg is platform-independent, it should be possible to extract data archived on windows on e.g. linux, so i guess we do not want to have backslashes in archived item metadata, but only forward slashes.
there might be also some code in borg, that only works correctly for slashes, not sure.
so the idea is to normalize to forward slashes:
borg create repo::archive \some\path1 -> borg create repo::archive /some/path
In the archive (borg list), this needs to look like some/path later as borg only stores relative pathes.
Guess this can be done by using a special argparse validator for processing path-like cli arguments that does the transformation.
Guess it is wise to completely ignore the existence of drive letters to limit the scope of the fix to just path separators working as they should. We can just assume that we only archive data from the current drive and a drive letter is not used within cli arguments.
Later, fix drive letters (only) in a separate PR.