v1.18.x
barisusakli 9 years ago
parent f09ee86e42
commit 33033e3bc5

@ -164,11 +164,7 @@ var fs = require('fs'),
});
// Filter out plugins with invalid paths
async.filter(paths, function(path, next) {
fs.access(path, fs.R_OK, function(err) {
next(!err);
});
}, function(paths) {
async.filter(paths, file.exists, function(paths) {
next(null, paths);
});
},

Loading…
Cancel
Save