function (handler, directory) {
        var globPattern = this.getExtensionGlob(handler.extensions, ALL_DIRS);
        return _.map(glob.sync(globPattern, {cwd: directory}), function (file) {
            return {name: file, path: path.join(directory, file)};
        });
    }
function (handler, directory) {
        var globPattern = this.getExtensionGlob(handler.extensions, ALL_DIRS);
        return _.map(glob.sync(globPattern, {cwd: directory}), function (file) {
            return {name: file, path: path.join(directory, file)};
        });
    }
function ( handler , directory ) { var globPattern = this . getExtensionGlob ( handler . extensions , ALL_DIRS ) ; return _ . map ( glob . sync ( globPattern , { cwd : directory } ) , function ( file ) { return { name : file , path : path . join ( directory , file ) } ; } ) ; }
Use the handler extensions to get a globbing pattern, then use that to fetch all the files from the zip which
are relevant to the given handler, and return them as a name and path combo
@param {Object} handler
@param {String} directory
@returns [] Files
Use the handler extensions to get a globbing pattern then use that to fetch all the files from the zip which are relevant to the given handler and return them as a name and path combo
Get the list of files in the given directory