fix(size) rm isFile

This commit is contained in:
coderaiser 2014-06-24 07:16:31 -04:00
parent da8fb030e2
commit 2a63c745fc

View file

@ -32,7 +32,6 @@
}
function calcSize(error, size) {
if (error)
if (stopOnError)
Util.exec(callback, error);
@ -73,7 +72,7 @@
getDirInfo(dir);
function getStat(dir, error, stat) {
var isFile, isDir;
var isDir;
--fileCounter;
@ -82,10 +81,9 @@
wasError = true;
func(error);
} else {
isFile = stat.isFile(),
isDir = stat.isDirectory();
if (isFile)
if (!isDir)
func(null, stat.size);
else if (isDir) {
++asyncRunning;