Skip to content

Instantly share code, notes, and snippets.

@rociiu
Created October 19, 2009 06:29
Show Gist options
  • Save rociiu/213139 to your computer and use it in GitHub Desktop.
Save rociiu/213139 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