From: ara.t.howard@... Date: 2007-02-16T06:41:56+09:00 Subject: Re: Found a Find.find() bug? On Fri, 16 Feb 2007, Garance A Drosehn wrote: > 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? i __think__ this could happen if /tmp were a soft link... ?? -a -- we can deny everything, except that we have the possibility of being better. simply reflect on that. - the dalai lama