function makeSubfolders(config) {
  const folderPaths = [];

  if (config.outputStat) {
    folderPaths.push(path.join(config.outputPath, 'stat'));
  }

  if (config.outputList) {
    folderPaths.push(path.join(config.outputPath, 'list'));
    folderPaths.push(path.join(config.outputPath, 'list', 'data'));
  }

  return Bluebird.all(folderPaths.map((folderPath) => mkdirp(folderPath)));
}
/**
 * For each output specified, creates a folder.
 * @param  {Object} config   Application config.
 * @return {Promise}         Promise resolving to the array of folder paths.
 */
For each output specified, creates a folder.
@param  {Object} config   Application config.
@return {Promise}         Promise resolving to the array of folder paths.
For each output specified creates a folder . @param { Object } config Application config . @return { Promise } Promise resolving to the array of folder paths .
function makeSubfolders(config) {
  const folderPaths = [];
  if (config.outputStat) {
    folderPaths.push(path.join(config.outputPath, 'stat'));
  }
  if (config.outputList) {
    folderPaths.push(path.join(config.outputPath, 'list'));
    folderPaths.push(path.join(config.outputPath, 'list', 'data'));
  }
  return Bluebird.all(folderPaths.map((folderPath) => mkdirp(folderPath)));
}
function makeSubfolders ( config ) { const folderPaths = [ ] ; if ( config . outputStat ) { folderPaths . push ( path . join ( config . outputPath , 'stat' ) ) ; } if ( config . outputList ) { folderPaths . push ( path . join ( config . outputPath , 'list' ) ) ; folderPaths . push ( path . join ( config . outputPath , 'list' , 'data' ) ) ; } return Bluebird . all ( folderPaths . map ( ( folderPath ) => mkdirp ( folderPath ) ) ) ; }
For each output specified, creates a folder.
For each output specified creates a folder .