From: pphetra Date: 2007-11-09T18:35:08+09:00 Subject: Re: Best way to test if a directory is empty On Nov 9, 1:54 pm, Peter Marks wrote: > if Dir["#{RAILS_ROOT}/documents/"].empty? try this. if Dir["#{RAILS_ROOT}/documents/*"].empty?