From: Jay Sanders Date: 2008-03-25T04:16:53+09:00 Subject: Testing for Directories and Files Hello. I have a question regarding Files and Directories. I have a class method that opens a directory and reads the contents. What is the most efficient way to test whether an entry is a directory or a file? Also, the purpose of this program is to read through a tree directory structure and turn the directory names into database entries. Any suggestions on how to make a complete spider that utilizes Ruby's specialties? Thanks! -- Posted via http://www.ruby-forum.com/.