add cygpath support for volume src too

This commit is contained in:
ed
2021-06-12 01:55:45 +02:00
parent 88ce008e16
commit ca27f8587c
3 changed files with 8 additions and 3 deletions

View File

@@ -439,6 +439,9 @@ class AuthSrv(object):
raise Exception("invalid -v argument: [{}]".format(v_str))
src, dst, perms = m.groups()
if WINDOWS and src.startswith("/"):
src = "{}:\\{}".format(src[1], src[3:])
# print("\n".join([src, dst, perms]))
src = fsdec(os.path.abspath(fsenc(src)))
dst = dst.strip("/")