From: Peter Bailey Date: 2007-07-27T23:34:23+09:00 Subject: Re: File.basename problems Gordon Thiesfeld wrote: > It seems to matter that your extensions are upper-cased: > >>> Dir['*.tif'] > => ["1_lower.tif", "1_upper.TIF", "2_lower.tif", "2_upper.TIF"] > > Running Roberts code gives me this: > > 1_lower.tif 1_lower.pdf > I got you > 1_upper.TIF 1_upper.TIF.pdf > 2_lower.tif 2_lower.pdf > I got you > 2_upper.TIF 2_upper.TIF.pdf > > Very interesting. Yes! Thank you all! I did a File.rename to downcase and now it works fine. Sorry, I'm a Windows guy. Case has never meant much to me. -Peter -- Posted via http://www.ruby-forum.com/.