Recursively remove .svn directories (ruby script)
This snippet traverses a directory tree and removes .svn directories.
require 'find' require 'fileutils' Find.find('./') do |path| if File.basename(path) == '.svn' FileUtils.remove_dir(path, true) Find.prune end end