mirror of
https://github.com/coderaiser/cloudcmd.git
synced 2026-07-19 01:17:18 +00:00
fix(files) readPipe: add dir
This commit is contained in:
parent
81fdf2a16a
commit
cd1db20a31
1 changed files with 5 additions and 3 deletions
|
|
@ -51,9 +51,10 @@
|
|||
object.readPipe = readPipe;
|
||||
|
||||
function readPipe(params) {
|
||||
var name, lenght,
|
||||
var name, names, lenght,
|
||||
p = params;
|
||||
|
||||
|
||||
console.log(p.names);
|
||||
if (p.names) {
|
||||
names = p.names.slice();
|
||||
lenght = p.names.length;
|
||||
|
|
@ -63,7 +64,7 @@
|
|||
p.write.end();
|
||||
Util.exec(p.callback);
|
||||
} else {
|
||||
name = p.dir + p.names.shift();
|
||||
name = p.dir + names.shift();
|
||||
|
||||
pipe.create({
|
||||
from : name,
|
||||
|
|
@ -75,6 +76,7 @@
|
|||
Util.exec(p.callback, error);
|
||||
else
|
||||
readPipe({
|
||||
dir : p.dir,
|
||||
names : names,
|
||||
write : p.write,
|
||||
gzip : p.gzip
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue