Skip to content

Instantly share code, notes, and snippets.

@christianrojas
Created December 8, 2009 20:24
Show Gist options
  • Save christianrojas/251971 to your computer and use it in GitHub Desktop.
Save christianrojas/251971 to your computer and use it in GitHub Desktop.
require 'net/ftp'
ftp = Net::FTP.open('host' ) do |ftp|
ftp.login('user','password')
list = ftp.nlst(ftp.pwd)
list.each do |name|
puts name
end
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment