From: ts Date: 2006-10-10T23:52:31+09:00 Subject: Re: Net::FTP.new silently failing in block form >>>>> "D" == Daniel Berger writes: D> You're right, that does work. But, based on the source, why would that D> make a difference? I mean, FTP.open just calls FTP.new internally, D> right? The only difference seems to be that FTP.open requires a host D> name. We don't have the same source def FTP.open(host, user = nil, passwd = nil, acct = nil) if block_given? # ^^^^^^^^^^^^ ftp = new(host, user, passwd, acct) begin yield ftp # ^^^^^^^^^ ensure ftp.close end else new(host, user, passwd, acct) end end Guy Decoux