mirror of
https://github.com/coderaiser/cloudcmd.git
synced 2026-07-19 09:24:51 +00:00
refactor(dir) getStat
This commit is contained in:
parent
54e68952d2
commit
ae4cf5bfb0
1 changed files with 2 additions and 3 deletions
|
|
@ -63,7 +63,7 @@
|
|||
function getStat(dir, error, stat) {
|
||||
--fileCounter;
|
||||
|
||||
if (!error) {
|
||||
if (!error)
|
||||
if (stat.isFile())
|
||||
Util.exec(func, stat);
|
||||
else if (stat.isDirectory()) {
|
||||
|
|
@ -86,11 +86,10 @@
|
|||
}
|
||||
}
|
||||
|
||||
if(!n)
|
||||
if (!n)
|
||||
execCallBack();
|
||||
});
|
||||
}
|
||||
}
|
||||
|
||||
execCallBack();
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue