From: Ryan Leavengood Date: 2006-05-04T04:12:36+09:00 Subject: Re: problems ftp'ing with RUBY On 5/3/06, Peter Bailey wrote: > > require 'net/ftp' > indexfiles = Dir.glob("*.pdf") > indexfiles.each do |indexfile| > ftp = Net::FTP.open('mpc.bna.com') do |ftp| > ftp.login('username','password') > ftp.chdir('/data/bnaindex') > ftp.putbinaryfile("indexfile") I suppose no one has pointed out that the above line is probably a bug. Here you are telling the FTP library to put a binary file called indexfile, not using the contents of the variable indexfile. Therein lies the problem, as far as I can see. Regards, Ryan