mirror of
https://github.com/coderaiser/cloudcmd.git
synced 2026-01-23 18:55:26 +00:00
fix(rest) zip file if !to
This commit is contained in:
parent
ec1a7c5f99
commit
2bee80d764
1 changed files with 3 additions and 2 deletions
|
|
@ -340,9 +340,10 @@
|
|||
sendError(params, p.data);
|
||||
} else {
|
||||
from = mellow.convertPath(files.from);
|
||||
to = mellow.convertPath(files.to);
|
||||
|
||||
if (!to)
|
||||
if (files.to)
|
||||
to = mellow.convertPath(files.to);
|
||||
else
|
||||
to = from + '.zip';
|
||||
|
||||
pack.gzip(from, to, function(error) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue