DZone Snippets is a public source code repository. Easily build up your personal collection of code snippets, categorize them with tags / keywords, and share them with the world

Snippets has posted 5883 posts at DZone. View Full User Profile

Un Svn A Diretory Structure On Windows

11.17.2008
| 2076 views |
  • submit to reddit
        // invokes rd app\.svn /S /Q for every svn directory
Dir.glob("**/.svn/").each do |d|
  system "rd #{d.gsub(/\//,"\\")[0..-2]} \/S \/Q"
end