blob: 960ae9a3d3a8c2017b94d9dffd791b477beeb91b (
plain) (
tree)
|
|
'use strict';
// module PursLoader.Glob
var glob = require('glob');
var async = require('async');
function globAllFn(patterns, errback, callback) {
return function(){
async.map(patterns, glob, function(error, result){
if (error) errback(new Error(error))();
else callback(result)();
});
};
}
exports.globAllFn = globAllFn;
|