feature(flop) copy: add ncp check

This commit is contained in:
coderaiser 2014-06-23 03:03:03 -04:00
parent c34b6c57fb
commit 795b1c3d64

View file

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