code: function(dir, files){		
  		fs.readdirSync(dir).forEach(function(file){
  			try{
  				var current = path.join(dir, file);
  				var stat = fs.statSync(current);
  				if (stat && stat.isDirectory()) {
  					getAllFiles(current, files);
  				}else {
  				    files.push(current);
  				}
  			}catch(e){
  				console.error(e);
  			}
          });
  	}
docs: Read all files in directory and return an array with all files