mirror of
https://github.com/coderaiser/cloudcmd.git
synced 2026-01-23 18:55:26 +00:00
feature(flop) copy: add ncp check
This commit is contained in:
parent
c34b6c57fb
commit
795b1c3d64
1 changed files with 1 additions and 1 deletions
|
|
@ -93,7 +93,7 @@
|
|||
pipe.create(from, to, function(error) {
|
||||
var isDir = error && error.code === 'EISDIR';
|
||||
|
||||
if (isDir)
|
||||
if (isDir && ncp)
|
||||
ncp(from, to, {
|
||||
stopOnError: true
|
||||
}, callback);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue