FTP: Difference between revisions
Content added Content deleted
Simple9371 (talk | contribs) m (Convert this a "full task"... Feel free to put this bak to draft task if it needs to.) |
m (Added the Sidef language) |
||
Line 331: | Line 331: | ||
end</lang> |
end</lang> |
||
The connection is closed automatically at the end of the block. |
The connection is closed automatically at the end of the block. |
||
=={{header|Sidef}}== |
|||
{{trans|Ruby}} |
|||
<lang ruby>require 'Net::FTP'; |
|||
var ftp = %s'Net::FTP'.new('ftp.ed.ac.uk', Passive => 1); |
|||
ftp.login('anonymous','aaa@gmail.com'); |
|||
ftp.cwd('pub/courses'); |
|||
[ftp.dir].each {|line| say line }; |
|||
ftp.binary; # set binary mode |
|||
ftp.get("make.notes.tar"); |
|||
ftp.quit;</lang> |
|||
=={{header|Tcl}}== |
=={{header|Tcl}}== |