This commit is contained in:
AJ ONeal 2015-01-05 19:12:42 -07:00
parent 527cb82e9d
commit 0978e93679
1 changed files with 2 additions and 2 deletions

View File

@ -186,7 +186,7 @@
// error? first run? => maybe a file, maybe a true error // error? first run? => maybe a file, maybe a true error
me._wfirstrun = false; me._wfirstrun = false;
// readdir failed (might be a file), try a stat on the parent // readdir failed (might be a file), try a stat on the parent
parent = me._wcurpath.replace(/^(.*)\/.*$/, '$1'); parent = me._wcurpath.replace(/^(.*)\/.*$/, '$1');
fs[me._wStat](parent, function (e, stat) { fs[me._wStat](parent, function (e, stat) {
@ -194,7 +194,7 @@
// success // success
// now try stat on this as a child of the parent directory // now try stat on this as a child of the parent directory
child = me._wcurpath.replace(/^.*\/(.*)$/, '$1'); child = me._wcurpath.replace(/^.*\/(.*)$/, '$1');
files = [child]; me._wcurfiles = [child];
me._wcurpath = parent; me._wcurpath = parent;
} else { } else {
// TODO v3.0 // TODO v3.0