From: Andrew Wagner Date: 2010-08-24T00:02:05+09:00 Subject: Re: Looking for a file somewhere in a directory recursively --0016364580e431d5ca048e7eee88 Content-Type: text/plain; charset=UTF-8 What about doing something like this: result = %x[dir *.bat] ..and doing some basic parsing on the results? On Mon, Aug 23, 2010 at 10:49 AM, Ralph Shnelvar wrote: > Assume I have a file pattern > temp*.bat > > Assume I have a directory d:\XXX > > and that I want to find all instances using Windows' file matching > mechanisms rather than than Ruby regular expressions or the functionality of > fnmatch. > > In other words ... it _has_ to be the Windows file matching method exactly. > > > I see that FileUtils has a bunch of functionality but what I want is > something like > > X_FileUtils.dir("MyDir").pattern("*.bat") { |file| puts file } > > > Is there a gem "out there" to do what I want? > > Ralph --0016364580e431d5ca048e7eee88--