require 'find' require 'fileutils' def removeFiles( path, exts ) Find.find(path) do |f| if File.basename(f) == '.svn' FileUtils.remove_dir(f, true) Find.prune next end ext = File.extname(f) if exts.include?(ext) #File.delete(f) p f end end end

require 'find' require 'fileutils' def removeFiles( path, exts ) Find.find(path) do |f| if File.basename(f) == '.svn' FileUtils.remove_dir(f, true) Find.prune next end ext = File.extname(f) if exts.include?(ext) #File.delete(f) p f end end end