feature(flop) read: rm isDir

This commit is contained in:
coderaiser 2014-06-19 10:28:04 -04:00
parent 7501d70b81
commit 396f320791

View file

@ -84,14 +84,7 @@
break;
default:
dir.isDir(path, function(error, isDir) {
var getDirContent = commander.getDirContent;
if (isDir && !error)
getDirContent(path, callback);
else
callback(error, null, !isDir);
});
commander.getDirContent(path, callback);
break;
}
};