src/utils.js
/**
 * Expands the passed glob and returns the resulting file and folder paths.
 *
 * @returns {QPromise} A promise holding an array of file and folder paths.
 * @param {string} globExpression A glob expression.
 */
Expands the passed glob and returns the resulting file and folder paths.
@returns {QPromise} A promise holding an array of file and folder paths.
@param {string} globExpression A glob expression.
Expands the passed glob and returns the resulting file and folder paths . @returns { QPromise } A promise holding an array of file and folder paths . @param { string } globExpression A glob expression .
function expandGlob (globExpression) {
    var deferred = Q.defer();
    glob(globExpression, function (err, filesAndFolders) {
        if (err) {
            deferred.reject(err);
        } else {
            deferred.resolve(filesAndFolders);
        }
    });
    return deferred.promise;
}
function expandGlob ( globExpression ) { var deferred = Q . defer ( ) ; glob ( globExpression , function ( err , filesAndFolders ) { if ( err ) { deferred . reject ( err ) ; } else { deferred . resolve ( filesAndFolders ) ; } } ) ; return deferred . promise ; }
Expands the passed glob and returns the resulting file and folder paths.
Expands the passed glob and returns the resulting file and folder paths .