mirror of
https://github.com/9001/copyparty.git
synced 2025-08-17 09:02:15 -06:00
fix histpath getting indexed on windows
This commit is contained in:
parent
f5651b7d94
commit
89b79ba267
|
@ -469,6 +469,17 @@ class AuthSrv(object):
|
||||||
print(m.format(cfg_fn, self.line_ctr))
|
print(m.format(cfg_fn, self.line_ctr))
|
||||||
raise
|
raise
|
||||||
|
|
||||||
|
# case-insensitive; normalize
|
||||||
|
if WINDOWS:
|
||||||
|
cased = {}
|
||||||
|
for k, v in mount.items():
|
||||||
|
try:
|
||||||
|
cased[k] = fsdec(os.path.realpath(fsenc(v)))
|
||||||
|
except:
|
||||||
|
cased[k] = v
|
||||||
|
|
||||||
|
mount = cased
|
||||||
|
|
||||||
if not mount:
|
if not mount:
|
||||||
# -h says our defaults are CWD at root and read/write for everyone
|
# -h says our defaults are CWD at root and read/write for everyone
|
||||||
vfs = VFS(os.path.abspath("."), "", ["*"], ["*"])
|
vfs = VFS(os.path.abspath("."), "", ["*"], ["*"])
|
||||||
|
|
Loading…
Reference in a new issue