From: 13 Date: 2006-07-14T23:31:52+09:00 Subject: Re: File::FNM_CASEFOLD doesn't work for Dir.glob? Hi, It work's fine for me: martins@thno:~/tmp$ touch file.txt martins@thno:~/tmp$ touch file.Txt martins@thno:~/tmp$ irb --simple-prompt >> Dir.glob('*.txt', File::FNM_CASEFOLD) => ["file.txt", "file.Txt"] >> quit martins@thno:~/tmp$ ruby -v ruby 1.8.4 (2005-12-24) [i486-linux] -- Martins On 7/14/06, transfire@gmail.com wrote: > It's no fun to have to do: > > Dir.glob('[fF][oO][oO][dD][iI][rR]/*') > > That makes two oddiites between File.fnmatch? and Dir.glob. The other > is that. File.fnmatch? doesn't support **. Wouldn't it be better if > these two functions drew upon the same source code? > > T. > > >