delete_all (Sys)

         # File lib/rake/contrib/sys.rb, line 112
    112:   def delete_all(*wildcards)
    113:     wildcards.each do |wildcard|
    114:       Dir[wildcard].each do |fn|
    115:         next if ! File.exist?(fn)
    116:         if File.directory?(fn)
    117:           Dir["#{fn}/*"].each do |subfn|
    118:             next if subfn=='.' || subfn=='..'
    119:             delete_all(subfn)
    120:           end
    121:           log "Deleting directory #{fn}"
    122:           Dir.delete(fn)
    123:         else
    124:           log "Deleting file #{fn}"
    125:           File.delete(fn)
    126:         end
    127:       end
    128:     end
    129:   end