From 6a24432019b8ae63bb146a310acf8d76b292efac Mon Sep 17 00:00:00 2001 From: ed Date: Sun, 21 Sep 2025 19:44:35 +0000 Subject: [PATCH] windows: fix sharing entire drives (closes #837); broke in 8b66874b --- copyparty/authsrv.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/copyparty/authsrv.py b/copyparty/authsrv.py index 3bdc8bf1..4dd16804 100644 --- a/copyparty/authsrv.py +++ b/copyparty/authsrv.py @@ -635,6 +635,8 @@ class VFS(object): if do_stat and not bos.path.exists(ap): return True # doesn't exist at all; good to go dp, fn = os.path.split(ap) + if not fn: + return True # filesystem root try: fns = os.listdir(dp) except: @@ -647,6 +649,8 @@ class VFS(object): if lfn == zs.lower(): hit = zs break + if not hit: + return True # NFC/NFD or something, can't be helped either way if self.log: t = "returning 404 due to underlying case-insensitive filesystem:\n http-req: %r\n local-fs: %r" self.log("vfs", t % (fn, hit))