windows: fix sharing entire drives (closes #837);

broke in 8b66874b
This commit is contained in:
ed 2025-09-21 19:44:35 +00:00
parent 8f6194fe77
commit 6a24432019

View file

@ -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))