Code cleanup
This commit is contained in:
parent
85e84a0a3f
commit
863a196262
|
@ -188,14 +188,12 @@
|
||||||
}
|
}
|
||||||
|
|
||||||
if( !shouldExclude ) {
|
if( !shouldExclude ) {
|
||||||
|
|
||||||
console.log(me._wcurpath);
|
|
||||||
try {
|
try {
|
||||||
files = fs.readdirSync(me._wcurpath);
|
files = fs.readdirSync(me._wcurpath);
|
||||||
} catch(e) {
|
} catch(e) {
|
||||||
err = e;
|
err = e;
|
||||||
}
|
}
|
||||||
} else console.log("excluding: " + me._wcurpath)
|
}
|
||||||
|
|
||||||
me._wReaddirHandler(err, files);
|
me._wReaddirHandler(err, files);
|
||||||
};
|
};
|
||||||
|
@ -206,7 +204,6 @@
|
||||||
// Stop directories that contain filter keywords
|
// Stop directories that contain filter keywords
|
||||||
// from continuing through the walk process
|
// from continuing through the walk process
|
||||||
if (me._wfilters != undefined) {
|
if (me._wfilters != undefined) {
|
||||||
var shouldExclude = false;
|
|
||||||
for (var iFilter=0; iFilter<me._wfilters.length; ++iFilter) {
|
for (var iFilter=0; iFilter<me._wfilters.length; ++iFilter) {
|
||||||
if (me._wcurpath.indexOf(me._wfilters[iFilter]) != -1 ) {
|
if (me._wcurpath.indexOf(me._wfilters[iFilter]) != -1 ) {
|
||||||
me._wNext();
|
me._wNext();
|
||||||
|
|
Loading…
Reference in New Issue