Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- require 'net/ftp'
- @details = {
- :host => "caius.name",
- :user => "caius",
- :pass => "",
- :image_path => "websites/caius.name/images/"
- }
- @ftp = Net::FTP.new(@details[:host])
- @ftp.login(@details[:user], @details[:pass])
- files = @ftp.chdir(@details[:image_path])
- files = @ftp.list('*')
- p files
Add Comment
Please, Sign In to add comment