From: Garance A Drosehn Date: 2007-02-16T07:01:00+09:00 Subject: Re: Found a Find.find() bug? ------=_Part_64981_18081452.1171576857438 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Content-Disposition: inline On 2/15/07, ara.t.howard@noaa.gov wrote: > > On Fri, 16 Feb 2007, Garance A Drosehn wrote: > > 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... ?? Ooo. Good catch! If I switch to testing this on MacOS 10, then '/tmp' is a symlink to the directory '/private/tmp'. And in that case, I get: found 1 dirs, 0 other types in '/tmp'. vs found 10 dirs, 27 other types in '/tmp/'. -- Garance Alistair Drosehn = drosihn@gmail.com Senior Systems Programmer Rensselaer Polytechnic Institute; Troy, NY; USA ------=_Part_64981_18081452.1171576857438--