From fd84506db0574424a32a6929ad79e05d28f0d4bb Mon Sep 17 00:00:00 2001 From: ed Date: Fri, 12 Feb 2021 19:25:57 +0100 Subject: [PATCH] don't list up2k db in browser --- copyparty/httpcli.py | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/copyparty/httpcli.py b/copyparty/httpcli.py index a92fdfee..a625c53a 100644 --- a/copyparty/httpcli.py +++ b/copyparty/httpcli.py @@ -1095,6 +1095,10 @@ class HttpCli(object): if not self.args.ed or "dots" not in self.uparam: vfs_ls = exclude_dotfiles(vfs_ls) + hidden = [] + if fsroot.endswith(str(os.sep) + ".hist"): + hidden = ["up2k.db", "up2k.snap"] + dirs = [] files = [] for fn in vfs_ls: @@ -1106,6 +1110,8 @@ class HttpCli(object): if fn in vfs_virt: fspath = vfs_virt[fn].realpath + elif fn in hidden: + continue else: fspath = fsroot + "/" + fn