mirror of
https://github.com/coderaiser/cloudcmd.git
synced 2026-07-20 10:09:04 +00:00
refactor(size) processDir
This commit is contained in:
parent
0d2c2cb99f
commit
c96a57c310
1 changed files with 4 additions and 6 deletions
|
|
@ -82,12 +82,10 @@
|
|||
--fileCounter;
|
||||
|
||||
if (!wasError || !stopOnError) {
|
||||
if (error) {
|
||||
if (stopOnError) {
|
||||
wasError = true;
|
||||
emitter.emmit('error', error);
|
||||
}
|
||||
} else {
|
||||
if (error && stopOnError) {
|
||||
wasError = true;
|
||||
emitter.emmit('error', error);
|
||||
} else if (!error) {
|
||||
isDir = stat.isDirectory();
|
||||
|
||||
if (!isDir)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue