Created
August 18, 2011 01:47
-
-
Save unnitallman/1153108 to your computer and use it in GitHub Desktop.
FTP with Ruby
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
require 'net/ftp' | |
ftp=Net::FTP.new | |
ftp.connect(URL,21) | |
ftp.login(username,passwd) | |
ftp.chdir(directory) | |
ftp.getbinaryfile(filename) | |
ftp.close | |
http://ruby-doc.org/stdlib/libdoc/net/ftp/rdoc/index.html |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment