From: ChrisH Date: 2007-08-14T22:39:58+09:00 Subject: Re: Non Existent Method Dir.empty? Description via "ri" On Aug 14, 9:08 am, Bertram Scharpf wrote: snip > First think, then write. Sorry! > > Bertram > A little more thought and a review of Ruby-doc shows that it could be as simple as: Class Dir def empty?(path=Dir.pwd) Dir.entries(path).empty? end end cheers Chris