old_contents: 'use strict';
  
  /* global -Promise */
  var Promise = require('bluebird');
  var _ = require('underscore');
  var glob = require('glob');
  
  var getFileList = function getFileList (files) {
    var fileList = [];
  
    return new Promise(function (resolve, reject) {
      if (_.isString(files)) {
        glob(files, function (err, files) {
          if (err) {
            reject(err);
          }
          fileList = files;
          resolve(fileList);
        });
      } else if (_.isArray(files)) {
        // TODO
      } else {
        throw new Error('You can only provide a String or an Array of filenames');
      }
    });
  };
  
  var getSupportedBrowserList = function getUnsupportedBrowserList (browsers) {
    return {
      ie: ['6']
    };
  };
  
  module.exports = {
    getFileList: getFileList,
    getSupportedBrowserList: getSupportedBrowserList
  };
  
new_contents: 'use strict';
  
  /* global -Promise */
  var Promise = require('bluebird');
  
  var _ = require('underscore');
  var glob = Promise.promisify(require("glob"));;
  
  var getFileList = function getFileList (files) {
    if (_.isString(files)) {
      return glob(files);
    } else if (_.isArray(files)) {
      var fileSubLists = _.map(files, function (fileSubList) {
        return glob(fileSubList);
      });
  
      return Promise.reduce(fileSubLists, function(fileList, subList) {
        return fileList.concat(subList);
      }, []);
    }
  
    throw new Error('You can only provide a String or an Array of filenames');
  };
  
  var getSupportedBrowserList = function getUnsupportedBrowserList (browsers) {
    return {
      ie: ['6']
    };
  };
  
  module.exports = {
    getFileList: getFileList,
    getSupportedBrowserList: getSupportedBrowserList
  };
  
subject: Use Promisify and add ability to get String/Array of globs in api