On May 3, 2006, at 5:19 PM, 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") ^^^^^^^^^ you want indexfile, not "indexfile" > end > end Also, you are creating a new connection for every file. You want something like: require 'net/ftp' Net::FTP.open('mpc.bna.com') do |ftp| ftp.login('username','password') ftp.chdir('/data/bnaindex') Dir.glob("*.pdf").each { |file| ftp.putbinaryfile(file) } end -- Daniel