From 1f6e8116743aa14ad8659b0665c7421ed1982fa5 Mon Sep 17 00:00:00 2001 From: ed Date: Fri, 19 Dec 2025 21:54:19 +0000 Subject: [PATCH] show perms in ?h&ls + fix unlistc* --- copyparty/httpcli.py | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/copyparty/httpcli.py b/copyparty/httpcli.py index 6c2c646d..8281fc27 100644 --- a/copyparty/httpcli.py +++ b/copyparty/httpcli.py @@ -6387,10 +6387,10 @@ class HttpCli(object): eses = ["", ""] rvol = self.rvol wvol = self.wvol + allvols = self.asrv.vfs.all_nodes if self.args.have_unlistc: - allvols = self.asrv.vfs.all_vols - rvol = [x for x in rvol if "unlistcr" not in allvols[x[1:-1]].flags] - wvol = [x for x in wvol if "unlistcw" not in allvols[x[1:-1]].flags] + rvol = [x for x in rvol if "unlistcr" not in allvols[x].flags] + wvol = [x for x in wvol if "unlistcw" not in allvols[x].flags] vols = list(set(rvol + wvol)) if self.vpath: zs = "%s/" % (self.vpath,) @@ -6408,6 +6408,7 @@ class HttpCli(object): "tags": e_d, "dt": 0, "name": 0, + "perms": allvols[x].get_perms("", self.uname), } for x in sorted(vols) ]