From: Andrew Doades Date: 2008-08-31T06:13:23+09:00 Subject: Re: Net::FTP Andrew Doades wrote: > Michael Morin wrote: >> Andrew Doades wrote: >>> Error:550 08-30-08 02:10AM 196700640 file_20080830.7z: The >>> system cannot find the file specified. >> >> Those aren't "really silly filenames," those are the lines returned by >> the DIR command. Extract the filenames using split(/\s+/, 4). I'm not >> sure, but I don't think FTP defines any specific format for DIR output, >> so this might not work on all servers. > > OK, I have added that split line in here, > files_list.each.split(/\s+/, 4) do |file| > > now I get the error, > Error:no block given > > Must be doing something write, got a lot further Fixed it! I replaced files_list = ftp.dir with files_list = ftp.nlst -- Posted via http://www.ruby-forum.com/.