Forked from rociiu/ruby script to remove .svn folder recursive
Created
October 19, 2009 08:51
-
-
Save sofadesign/213205 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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