From: "Berger, Daniel" Date: 2005-07-12T07:01:58+09:00 Subject: Re: How to tell Dir from file? > -----Original Message----- > From: Ezra Zygmuntowicz [mailto:ezra@yakima-herald.com] > Sent: Monday, July 11, 2005 3:54 PM > To: ruby-talk ML > Subject: How to tell Dir from file? > I need to know how to tell the difference between a file with no > extension and a directory name. The script works perfectly right now > except when it first runs into a directory it makes a 0 byte file > with the same name within that directory. I need to know how to test > whether the current iteration contains an actual file or is a > directory so I can skip renaming it. See File.directory? Regards, Dan