From: Dan Date: 2008-01-25T20:27:53+09:00 Subject: Re: Check if directory exists ------=_Part_37921_16915941.1201260477622 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Content-Disposition: inline File.directory? 'some/dir' On Jan 25, 2008 8:59 PM, anti wrote: > On Dec 18 2007, 9:15 am, Florian Schaf wrote: > > hi! > > Can anyone tell me how I can check whether a directory exists or not? I > > didnt find anything via google or in the docs > > thanks! > > -- > > Posted viahttp://www.ruby-forum.com/. > > if Dir["C:/ruby"] != nil > puts 'Yeehoooo !' > else > puts 'no such directory' > end > > ------=_Part_37921_16915941.1201260477622--