From: Daniel Berger Date: 2008-10-03T06:36:48+09:00 Subject: Re: pathname's each_entry On Oct 2, 2:03 pm, Claudio Greco wrote: > Daniel Berger wrote: > > Nope, Pathname.new doesn't enforce that a particular pathname exists > > on your filesystem. That's up to you. > > Can you please clarify? > If I ask Pathname to return the entries that exist within a folder, then > by definition the objects returned must exist. Hm, you're right. I was thinking each_entry simply yielded each piece of the path. I think you're getting false because Pathname#exist? isn't expanding the path on the test. Trying using it in conjunction with File.expand_path and see if that works. Regards, Dan