From: Arlen Cuss Date: 2008-04-13T19:56:20+09:00 Subject: Re: Ensuring FTP calls complete ------=_Part_13707_13079630.1208084179601 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit Content-Disposition: inline Hi, On Sun, Apr 13, 2008 at 3:32 AM, James Reynolds wrote: > In the Ruby docs, the return_code function is listed as "Obsolete." It's not only obsolete; quick squiz at the code reveals it does nothing: def return_code $stderr.puts("warning: Net::FTP#return_code is obsolete and do nothing") return "\n" end The short answer is, net/ftp will (probably) throw an exception if something goes wrong. Try reading the code yourself, depending on what you do. I don't have experience with it, but hopefully a guru here does. (on my system [Ubuntu], I can find net/ftp's code at /usr/lib/ruby/1.8/net/ftp.rb) Cheers, Arlen. ------=_Part_13707_13079630.1208084179601--