mirror of
https://github.com/coderaiser/cloudcmd.git
synced 2026-01-23 02:35:49 +00:00
fix(size) rm isFile
This commit is contained in:
parent
da8fb030e2
commit
2a63c745fc
1 changed files with 2 additions and 4 deletions
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue