From e4ca4260bbed7ba4c043e838473ed8a04a450839 Mon Sep 17 00:00:00 2001 From: ed Date: Wed, 20 Oct 2021 00:51:00 +0200 Subject: [PATCH] support mounting entire disks on windows --- copyparty/up2k.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/copyparty/up2k.py b/copyparty/up2k.py index 41e54414..95670edf 100644 --- a/copyparty/up2k.py +++ b/copyparty/up2k.py @@ -530,7 +530,7 @@ class Up2k(object): else: # self.log("file: {}".format(abspath)) seen_files[iname] = 1 - rp = abspath[len(top) + 1 :] + rp = abspath[len(top) :].lstrip("/") if WINDOWS: rp = rp.replace("\\", "/").strip("/")