code: function deleteSvnFolders(dir) {
      var contents = fs.readdirSync(dir);
      contents.forEach(function(entry) {
          var fullpath = path.join(dir, entry);
          if (fs.statSync(fullpath).isDirectory()) {
              if (entry == '.svn') {
                  shell.rm('-rf', fullpath);
              } else module.exports.deleteSvnFolders(fullpath);
          }
      });
  }
docs: Recursively deletes .svn folders from a target path