mirror of
https://github.com/9001/copyparty.git
synced 2025-09-30 21:52:27 -06:00
parent
8f6194fe77
commit
6a24432019
|
@ -635,6 +635,8 @@ class VFS(object):
|
||||||
if do_stat and not bos.path.exists(ap):
|
if do_stat and not bos.path.exists(ap):
|
||||||
return True # doesn't exist at all; good to go
|
return True # doesn't exist at all; good to go
|
||||||
dp, fn = os.path.split(ap)
|
dp, fn = os.path.split(ap)
|
||||||
|
if not fn:
|
||||||
|
return True # filesystem root
|
||||||
try:
|
try:
|
||||||
fns = os.listdir(dp)
|
fns = os.listdir(dp)
|
||||||
except:
|
except:
|
||||||
|
@ -647,6 +649,8 @@ class VFS(object):
|
||||||
if lfn == zs.lower():
|
if lfn == zs.lower():
|
||||||
hit = zs
|
hit = zs
|
||||||
break
|
break
|
||||||
|
if not hit:
|
||||||
|
return True # NFC/NFD or something, can't be helped either way
|
||||||
if self.log:
|
if self.log:
|
||||||
t = "returning 404 due to underlying case-insensitive filesystem:\n http-req: %r\n local-fs: %r"
|
t = "returning 404 due to underlying case-insensitive filesystem:\n http-req: %r\n local-fs: %r"
|
||||||
self.log("vfs", t % (fn, hit))
|
self.log("vfs", t % (fn, hit))
|
||||||
|
|
Loading…
Reference in a new issue