FTP: Difference between revisions

→‎{{header|Ruby}}: added comment
(→‎{{header|Ruby}}: simplified printing to console)
(→‎{{header|Ruby}}: added comment)
Line 650:
 
Net::FTP.open('ftp.ed.ac.uk', "anonymous","aaa@gmail.com" ) do |ftp|
ftp.passive = true # default since Ruby 2.3
ftp.chdir('pub/courses')
puts ftp.list
1,149

edits