Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save sofadesign/213205 to your computer and use it in GitHub Desktop.
Save sofadesign/213205 to your computer and use it in GitHub Desktop.
require 'find'
require 'fileutils'
dir = '/your_directory'
Find.find(dir) do |path|
if FileTest.directory?(path) && File.basename(path) == '.svn'
p 'rm directory:' + path
FileUtils.remove_dir(path)
else
end
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment