Correction for directory exclusion

This commit is contained in:
Mathieu Chateau 2014-04-11 17:13:18 +02:00
parent 754f6bb9c4
commit 6b72860050
1 changed files with 2 additions and 2 deletions

View File

@ -205,7 +205,7 @@
var err
, files
, me = this
;
;f
try {
files = fs.readdirSync(me._wcurpath);
@ -237,7 +237,7 @@
while (me._wq.length && me._wFilter()) {
me._wcurpath = me._wq.pop();
}
if (me._wcurpath) {
if (me._wcurpath && !me._wFilter()) {
me._wWalk();
} else {
me._wNext();