How to tell Dir from file?

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?

<snip>

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

ยทยทยท

-----Original Message-----