mirror of
https://github.com/9001/copyparty.git
synced 2025-09-28 04:32:26 -06:00
download-as-zip: better names for selections;
previously, the first selected file became the name of the zip now, the name will be "sel-foldername", similar to when the whole folder is downloaded, but with a prefix to indicate it's a subset
This commit is contained in:
parent
14b7e5143f
commit
8f587627e1
|
@ -4731,11 +4731,9 @@ class HttpCli(object):
|
|||
packer = StreamZip
|
||||
ext = "zip"
|
||||
|
||||
fn = items[0] if items and items[0] else self.vpath
|
||||
if fn:
|
||||
fn = fn.rstrip("/").split("/")[-1]
|
||||
else:
|
||||
fn = self.host.split(":")[0]
|
||||
fn = self.vpath.split("/")[-1] or self.host.split(":")[0]
|
||||
if items:
|
||||
fn = "sel-" + fn
|
||||
|
||||
if vn.flags.get("zipmax") and not (
|
||||
vn.flags.get("zipmaxu") and self.uname != "*"
|
||||
|
|
Loading…
Reference in a new issue