Never been to TextSnippets before?

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 (or not, you can keep them private!)

About this user

Helge A. Gudmundsen http://www.helgegudmundsen.com

« Newer Snippets
Older Snippets »
1 total  XML / RSS feed 

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
« Newer Snippets
Older Snippets »
1 total  XML / RSS feed