fixed sole bug in Jorge's example
This commit is contained in:
父節點
2afcadfeb4
當前提交
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);
|
||||
載入中…
x
新增問題並參考
Block a user