back to async by default, typo fix on fi[r]strun
This commit is contained in:
parent
8005996062
commit
ca3c95b022
|
@ -6,7 +6,7 @@
|
|||
"author" : "AJ ONeal <coolaj86@gmail.com>",
|
||||
"contributors" : [],
|
||||
"dependencies" : {
|
||||
"forEachAsync": ">= 2.1.0"
|
||||
"forEachAsync": "~2.2"
|
||||
},
|
||||
"lib" : ".",
|
||||
"main" : "./walk.js",
|
||||
|
|
|
@ -31,11 +31,11 @@
|
|||
var me = this
|
||||
;
|
||||
|
||||
me._wsync = true;
|
||||
me._wsync = sync;
|
||||
me._wq = [];
|
||||
me._wqueue = [me._wq];
|
||||
me._wcurpath = undefined;
|
||||
me._wfistrun = true;
|
||||
me._wfirstrun = true;
|
||||
me._wcurpath = pathname;
|
||||
|
||||
if (me._wsync) {
|
||||
|
@ -151,13 +151,13 @@
|
|||
return;
|
||||
}
|
||||
|
||||
if (!me._wfistrun) {
|
||||
if (!me._wfirstrun) {
|
||||
me.emit('directoryError', me._wcurpath, { error: err }, noop);
|
||||
me._wReadFiles();
|
||||
return;
|
||||
}
|
||||
|
||||
me._wfistrun = false;
|
||||
me._wfirstrun = false;
|
||||
// TODO how to remove this anony?
|
||||
fs.lstat(me._wcurpath, function (e, stat) {
|
||||
|
||||
|
|
Loading…
Reference in New Issue