Skip to content

Instantly share code, notes, and snippets.

@jmercedes
Created May 9, 2015 21:53
Show Gist options
  • Select an option

  • Save jmercedes/f75da9f9f60b0b72ddc6 to your computer and use it in GitHub Desktop.

Select an option

Save jmercedes/f75da9f9f60b0b72ddc6 to your computer and use it in GitHub Desktop.
Dir.chdir('tmp') do
Net::FTP.open('***') do |ftp|
ftp.passive = true
ftp.login('***', '***')
files = ftp.nlst("*.xml")
puts files
end #ftp
end #Dir
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment