From: Troy Denkinger Date: 2006-10-22T09:42:48+09:00 Subject: Re: What is wrong with my code ------=_Part_43520_4278412.1161477766049 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Content-Disposition: inline Dir.each returns the file, without the path information. You'll need to prepend that and using File.join is a good way to do it. ------=_Part_43520_4278412.1161477766049--