Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Hey, FileUtils.rm_rf exists. Use that.

  • Loading branch information...
commit b23db5ef2e05d0da346efdd84069617f85d922c8 1 parent 73c125e
@dagbrown authored
Showing with 1 addition and 14 deletions.
  1. +1 −14 Rakefile
View
15 Rakefile
@@ -190,20 +190,7 @@ end
def delete_all(*wildcards)
wildcards.each do |wildcard|
- Dir[wildcard].each do |fn|
- next if ! File.exist?(fn)
- if File.directory?(fn)
- Dir["#{fn}/*"].each do |subfn|
- next if subfn=='.' || subfn=='..'
- delete_all(subfn)
- end
- puts "Deleting directory #{fn}"
- Dir.delete(fn)
- else
- puts "Deleting file #{fn}"
- File.delete(fn)
- end
- end
+ FileUtils.rm_rf wildcard
end
end
Please sign in to comment.
Something went wrong with that request. Please try again.