------ art_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 <anatoly.volovik / gmail.com> wrote: > On Dec 18 2007, 9:15 am, Florian Schaf <flo.sc... / gmail.com> 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"] ! il > puts 'Yeehoooo !' > else > puts 'no such directory' > end > > ------ art_37921_16915941.1201260477622--