From: Robert Klemme Date: 2006-06-08T21:47:22+09:00 Subject: Re: glob but not fnmatch? 2006/6/8, transfire@gmail.com : > Can't imagine this is right (Linux, Ruby 1.8.4) > > Dir.glob('lib/**/*') #=> [ 'lib/facets.rb' ] > > File.fnmatch?('lib/**/*', 'lib/facets.rb') #=> false > > In the mean time, anyone got a working Ruby-coded #fnmatch? I can use? As far as I can see File.fnmatch does not support directory path matching with "**": http://www.ruby-doc.org/core/classes/File.html#M000012 So although this may seem inconvenient / asymmetric behavior conforms at least to the docs. robert -- Have a look: http://www.flickr.com/photos/fussel-foto/