list directory and create wget calls to build standalone html dirs

/ Published in: Ruby
Save to your folder(s)

output can be run as a shell script. should be able to refactor this as a piped wget, i think

Copy this code and paste it in your HTML
  1. dir ="path/to/files"
  2. { |e|
  3. dirname = e.split(".")
  4. puts "wget -nd -k -r -P#{dirname[0]} http://localhost/path/to/dirs/#{e}"
  5. }

Report this snippet


RSS Icon Subscribe to comments

You need to login to post a comment.