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