Merge branch 'master' of wannabesrevenge/fs-walk.js into master

This commit is contained in:
AJ ONeal 2018-03-26 04:30:21 +00:00 committed by Gitea
commit 1e516c2a52
2 changed files with 6 additions and 1 deletions

View File

@ -47,7 +47,11 @@
function emitSingleEvents(emitter, path, stats, next, self) { function emitSingleEvents(emitter, path, stats, next, self) {
var num = 1 + emitter.listeners(stats.type).length + emitter.listeners("node").length; var num = 1 + emitter.listeners(stats.type).length + emitter.listeners("node").length;
function nextWhenReady() { function nextWhenReady(flag) {
if (flag) {
stats.flag = flag;
flagSet = flag;
}
num -= 1; num -= 1;
if (0 === num) { next.call(self); } if (0 === num) { next.call(self); }
} }

View File

@ -14,6 +14,7 @@
function appendToDirs(stat) { function appendToDirs(stat) {
/*jshint validthis:true*/ /*jshint validthis:true*/
if(stat.flag && stat.flag === NO_DESCEND) { return; }
this.push(stat.name); this.push(stat.name);
} }