/ Published in: Ruby

output can be run as a shell script. should be able to refactor this as a piped wget, i think
Expand |
Embed | Plain Text
Copy this code and paste it in your HTML
dir ="path/to/files" Dir.new(dir).entries.each { |e| dirname = e.split(".") puts "wget -nd -k -r -P#{dirname[0]} http://localhost/path/to/dirs/#{e}" }
Comments
