Skip to content

Instantly share code, notes, and snippets.

@mfn
Created March 11, 2011 09:55
Show Gist options
  • Save mfn/865681 to your computer and use it in GitHub Desktop.
Save mfn/865681 to your computer and use it in GitHub Desktop.
require 'find'
dirs_to_scan = [ '.' ]
dirs_to_scan = ARGV if ARGV.length > 0
dirs_to_scan.each do |dir|
Find.find( dir ) do |entry|
if FileTest.directory?(entry) && FileTest.directory?(entry + "/.svn")
puts entry
Find.prune
end
end
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment