lib/util/glob.js
function(pattern, callback) {
    glob(pattern, opts, function(err, globbedFiles) {
      if (isArray(globbedFiles) && globbedFiles.length && !err) {
        callback(null, globbedFiles);
      }
      else {
        console.error('The glob pattern ' + JSON.stringify(pattern) + ' did not match any files!');
        callback(null, []);
      }
    });
  }
function(pattern, callback) {
    glob(pattern, opts, function(err, globbedFiles) {
      if (isArray(globbedFiles) && globbedFiles.length && !err) {
        callback(null, globbedFiles);
      }
      else {
        console.error('The glob pattern ' + JSON.stringify(pattern) + ' did not match any files!');
        callback(null, []);
      }
    });
  }
function ( pattern , callback ) { glob ( pattern , opts , function ( err , globbedFiles ) { if ( isArray ( globbedFiles ) && globbedFiles . length && ! err ) { callback ( null , globbedFiles ) ; } else { console . error ( 'The glob pattern ' + JSON . stringify ( pattern ) + ' did not match any files!' ) ; callback ( null , [ ] ) ; } } ) ; }
Relative patterns are matched against the current working directory.
Relative patterns are matched against the current working directory .