FTP: Difference between revisions

Content added Content deleted
m (→‎{{header|Perl 6}}: Fetch a smaller file by default)
(→‎{{header|Ruby}}: simplified printing to console)
Line 652: Line 652:
ftp.passive = true
ftp.passive = true
ftp.chdir('pub/courses')
ftp.chdir('pub/courses')
ftp.list.each{|e| puts e}
puts ftp.list
ftp.getbinaryfile("make.notes.tar")
ftp.getbinaryfile("make.notes.tar")
end</lang>
end</lang>