lib/generator.js
function extractFolders( files ) {
    return files.data.files.map( function extractPath( file ) {
      return path.parse( file ).dir;
    }).filter( function extractUnique( path, index, array ) {
      return array.indexOf( path ) === index;
    });
  }
function extractFolders( files ) {
    return files.data.files.map( function extractPath( file ) {
      return path.parse( file ).dir;
    }).filter( function extractUnique( path, index, array ) {
      return array.indexOf( path ) === index;
    });
  }
function extractFolders ( files ) { return files . data . files . map ( function extractPath ( file ) { return path . parse ( file ) . dir ; } ) . filter ( function extractUnique ( path , index , array ) { return array . indexOf ( path ) === index ; } ) ; }
Parses retrieved KSS meta data and extracts a list of folders to create fixtures for.

@param {array} files - a list of all the files retrieved from the KSS meta data.
@returns {array} a list of all the folders to create fixtures for.
Parses retrieved KSS meta data and extracts a list of folders to create fixtures for .