mirror of
https://github.com/9001/copyparty.git
synced 2025-08-17 17:12:13 -06:00
don't list up2k db in browser
This commit is contained in:
parent
d8bcb44e44
commit
fd84506db0
|
@ -1095,6 +1095,10 @@ class HttpCli(object):
|
||||||
if not self.args.ed or "dots" not in self.uparam:
|
if not self.args.ed or "dots" not in self.uparam:
|
||||||
vfs_ls = exclude_dotfiles(vfs_ls)
|
vfs_ls = exclude_dotfiles(vfs_ls)
|
||||||
|
|
||||||
|
hidden = []
|
||||||
|
if fsroot.endswith(str(os.sep) + ".hist"):
|
||||||
|
hidden = ["up2k.db", "up2k.snap"]
|
||||||
|
|
||||||
dirs = []
|
dirs = []
|
||||||
files = []
|
files = []
|
||||||
for fn in vfs_ls:
|
for fn in vfs_ls:
|
||||||
|
@ -1106,6 +1110,8 @@ class HttpCli(object):
|
||||||
|
|
||||||
if fn in vfs_virt:
|
if fn in vfs_virt:
|
||||||
fspath = vfs_virt[fn].realpath
|
fspath = vfs_virt[fn].realpath
|
||||||
|
elif fn in hidden:
|
||||||
|
continue
|
||||||
else:
|
else:
|
||||||
fspath = fsroot + "/" + fn
|
fspath = fsroot + "/" + fn
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue