fixed sole bug in Jorge's example
This commit is contained in:
parent
2afcadfeb4
commit
edc248289b
|
@ -30,7 +30,8 @@ function walk (file, cb) {
|
|||
|
||||
function getDirectory (cb) {
|
||||
fs.readdir(file, function(err, files) {
|
||||
if (!files) return;
|
||||
// XXX bug was here. `next()` added by coolaj86
|
||||
if (!files) return next();
|
||||
//if (err) throw Error(err);
|
||||
files.sort(sort);
|
||||
files.forEach(fullPath);
|
Loading…
Reference in New Issue