Forum: Ruby Using Net/FTP to download a file (FTP Error 550)

Announcement (2017-05-07): is now read-only since I unfortunately do not have the time to support and maintain the forum any more. Please see and for other Rails- und Ruby-related community platforms.
78c53c84c7af015c7ae9f5c43322c2cc?d=identicon&s=25 Jeff Miller (ibanez270dx)
on 2009-03-26 18:53
Hey guys,
 I'm trying to connect to an FTP site and download the remote files. I
haven't done this via Ruby before, so please bear with me. I can connect
to the FTP site no problem, but when I try to download the file, I get
the error: "550 *** ERROR *** NO BATCHES FOR TRANSMISSION". I've
iterated over the items in the folder, which are 6 .dat files, so I know
it can see the files. Here is my code: do |ftp|

ftp.list.each do |item|
 puts item
 ftp.gettextfile(item, localfile=File.basename(item))

any and all help is appreciated!

 - Jeff Miller
This topic is locked and can not be replied to.