code: function listDirSync (path, originalPath) {
    if (!originalPath) {
      originalPath = path + separator;
    }
  
    var list = [];
  
    var files = fs.readdirSync(path);
  
    files.forEach(function (file) {
      var absolutePath = join(path, file);
  
      var isDirectory = fs.statSync(absolutePath).isDirectory();
  
      // if directory, read it
      // and merge results
      if (isDirectory) {
        var subList = listDirSync(absolutePath, originalPath);
  
        list = list.concat(subList);
  
        return;
      }
  
      // return relative paths
      var relativePath = absolutePath.replace(originalPath, '');
  
      list.push(relativePath);
    });
  
    return list;
  }
docs: List directory recursively (sync)
  
  @param  {String} path
  @return {Array}