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>",
|
"author" : "AJ ONeal <coolaj86@gmail.com>",
|
||||||
"contributors" : [],
|
"contributors" : [],
|
||||||
"dependencies" : {
|
"dependencies" : {
|
||||||
"forEachAsync": ">= 2.1.0"
|
"forEachAsync": "~2.2"
|
||||||
},
|
},
|
||||||
"lib" : ".",
|
"lib" : ".",
|
||||||
"main" : "./walk.js",
|
"main" : "./walk.js",
|
||||||
|
|
|
@ -31,11 +31,11 @@
|
||||||
var me = this
|
var me = this
|
||||||
;
|
;
|
||||||
|
|
||||||
me._wsync = true;
|
me._wsync = sync;
|
||||||
me._wq = [];
|
me._wq = [];
|
||||||
me._wqueue = [me._wq];
|
me._wqueue = [me._wq];
|
||||||
me._wcurpath = undefined;
|
me._wcurpath = undefined;
|
||||||
me._wfistrun = true;
|
me._wfirstrun = true;
|
||||||
me._wcurpath = pathname;
|
me._wcurpath = pathname;
|
||||||
|
|
||||||
if (me._wsync) {
|
if (me._wsync) {
|
||||||
|
@ -151,13 +151,13 @@
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (!me._wfistrun) {
|
if (!me._wfirstrun) {
|
||||||
me.emit('directoryError', me._wcurpath, { error: err }, noop);
|
me.emit('directoryError', me._wcurpath, { error: err }, noop);
|
||||||
me._wReadFiles();
|
me._wReadFiles();
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
me._wfistrun = false;
|
me._wfirstrun = false;
|
||||||
// TODO how to remove this anony?
|
// TODO how to remove this anony?
|
||||||
fs.lstat(me._wcurpath, function (e, stat) {
|
fs.lstat(me._wcurpath, function (e, stat) {
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue