From: Garance A Drosehn Date: 2007-02-16T06:21:52+09:00 Subject: Re: Found a Find.find() bug? ------=_Part_64649_13381664.1171574509456 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Content-Disposition: inline On 2/15/07, robertlaferla@comcast.net wrote: > > I was trying out Find.find() today and found that if you pass it a > directory without a trailing slash, it doesn't traverse the directory. This > seems like a bug to me. Is it? If so, how do I report it? > > e.g. > > require 'find' > Find.find("/tmp/") do |path| > puts path > end > > vs. > > require 'find' > Find.find("/tmp/") do |path| > puts path > end > > Unless I'm missing something, your two examples are exactly the same. I am running ruby 1.8.5 (2006-12-25 patchlevel 12) [i386-freebsd6] And I tried a quick test of: Find.find("/tmp") vs: Find.find("/tmp/") And I seemed to get the same result from both. In my case, both tests found 131 directories and 27 "other things" (ie, "not directories"). What platform are you running ruby on? Which version of ruby are you running? -- Garance Alistair Drosehn = drosihn@gmail.com Senior Systems Programmer Rensselaer Polytechnic Institute; Troy, NY; USA ------=_Part_64649_13381664.1171574509456--