fix(flop) copy: conditions

This commit is contained in:
coderaiser 2014-06-24 06:57:29 -04:00
parent f9e1ebfb47
commit 75e1821b48

View file

@ -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);
});