From 70f1642d0de2dd2bae26b18d257ef07cd4369afc Mon Sep 17 00:00:00 2001 From: ed Date: Sat, 21 Jan 2023 20:56:44 +0000 Subject: [PATCH] allow tar/zip download of hidden folders --- copyparty/authsrv.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/copyparty/authsrv.py b/copyparty/authsrv.py index 77fca110..c2cedbea 100644 --- a/copyparty/authsrv.py +++ b/copyparty/authsrv.py @@ -587,7 +587,7 @@ class VFS(object): # if multiselect: add all items to archive root # if single folder: the folder itself is the top-level item - folder = "" if flt or not wrap else (vrem.split("/")[-1] or "top") + folder = "" if flt or not wrap else (vrem.split("/")[-1].lstrip(".") or "top") g = self.walk(folder, vrem, [], uname, [[True, False]], dots, scandir, False) for _, _, vpath, apath, files, rd, vd in g: