/ 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
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
Subscribe to comments
You need to login to post a comment.

Originally based on someone else's snippet.
...which is located here: http://beust.com/weblog/archives/000181.html (apparently snipplr won't let you do links in the comments?)