From: Daniel Berger Date: 2008-10-03T04:33:03+09:00 Subject: Re: pathname's each_entry On Oct 2, 1:22 pm, Claudio Greco wrote: > Hi all, > > I noticed that the following code > > require 'pathname' > p = Pathname.new('Test') > p.each_entry { | f | puts f.exist? } > > does not work as I would expect. > I'm expecting that any returned object exists otherwise it wouldn't be > returned. Nope, Pathname.new doesn't enforce that a particular pathname exists on your filesystem. That's up to you. Regards, Dan