12 34 wrote:
> Todd Benson wrote:
>> On 7/1/07, 12 34 <r> wrote:
>> 
>> This works for me just fine (the exact same thing you are doing):
>> 
>> ['.tif''].include? File.extname('/Volumes/2001/Tioga 
>> OCSS.x.tif').downcase
>> 
>> => true
>> 
>> 
>> Are you sure you don't accidentally have any extra/weird characters in
>> either your extNot2Move array or your File names?
> 
> Thanks. Yes this works, and it works when I change one of the tif to txt 
> for example. So the problem must be in the extNot2move.any? part.
> 
> More fiddling and learning.

if extNot2move.include?(File.extname(fn).downcase) # Does not work

 if !['.jpg', '.pdf', 
'.mrw','.png','.psd','.tif','.gif','.pict'].include?(File.extname(fn).downcase) 
# seems to work

I need to check the logic of what I'm doing after the test. I've got 
myself lost in trying out so many variations.

-- 
Posted via http://www.ruby-forum.com/.