From: Winston Tsang Date: 2007-02-28T05:43:01+09:00 Subject: Re: Found a Find.find() bug? ------=_Part_3908_13340071.1172608974002 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Content-Disposition: inline Thanks for doing this. I just ran into this problem today (Find following soft symlinks issue). One thing I ran into is that Find2.prune does not work as expected. Once you run prune, it seems to prune everything back at the non-symlink level. I'll have to look into it further to see if I can do anything about this. On 2/16/07, ara.t.howard@noaa.gov wrote: > > On Sat, 17 Feb 2007, Daniel Berger wrote: > > > > > I'd vote to add support for a :follow option as well - just watch for > > infinite loops. Got a patch? > > > > attached. > > p Find2.find('.') > > Find2.find('.', :follow => true) do |path| > p path > end > > Find2.find2('.', :follow => true) do |path, stat| > p [path, stat.mtime] > end > > this on codeforpeople under alib, if you are looking in the future... > > -a > -- > we can deny everything, except that we have the possibility of being > better. > simply reflect on that. > - the dalai lama > ------=_Part_3908_13340071.1172608974002--