mirror of
https://github.com/coderaiser/cloudcmd.git
synced 2026-07-20 01:47:35 +00:00
fix(flop) copy: conditions
This commit is contained in:
parent
f9e1ebfb47
commit
75e1821b48
1 changed files with 4 additions and 5 deletions
|
|
@ -95,11 +95,10 @@
|
|||
|
||||
if (error)
|
||||
callback(error);
|
||||
else if (isDir)
|
||||
if (ncp)
|
||||
ncp(from, to, {
|
||||
stopOnError: true
|
||||
}, callback);
|
||||
else if (isDir && ncp)
|
||||
ncp(from, to, {
|
||||
stopOnError: true
|
||||
}, callback);
|
||||
else
|
||||
pipe.create(from, to, callback);
|
||||
});
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue