From fdd4f9f2aad19be93e68b1a2d6e0c5f60036b1bc Mon Sep 17 00:00:00 2001 From: ed Date: Tue, 2 Nov 2021 18:59:34 +0100 Subject: [PATCH] dirlist alignment --- copyparty/httpcli.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/copyparty/httpcli.py b/copyparty/httpcli.py index 4192240b..cb3aaf53 100644 --- a/copyparty/httpcli.py +++ b/copyparty/httpcli.py @@ -1862,7 +1862,7 @@ class HttpCli(object): arg = self.uparam["ls"] if arg in ["v", "t", "txt"]: try: - biggest = max(ls["files"], key=itemgetter("sz"))["sz"] + biggest = max(ls["files"] + ls["dirs"], key=itemgetter("sz"))["sz"] except: biggest = 0