From: Luis Lavena Date: 2009-06-03T06:24:07+09:00 Subject: [ruby-core:23677] Re: feature request: Directory.dir? On Tue, Jun 2, 2009 at 6:15 PM, Roger Pack wrote: >>> For some reason it seems odd to have to do File.dir? >>> however, having that and Directory.dir? would be quite nice and make sense. >> >> Dir.exist? > > Hmm. �Somehow Dir.exist? doesn't seem quite as...how to describe > it...fitting as Dir.dir? VERSION = v1_9_1_129 CMD = ~/.multiruby/install/v1_9_1_129/bin/ruby -S irb irb(main):001:0> Dir.exist?(File.expand_path("~")) => true irb(main):002:0> Dir.exist?(File.expand_path("~/.profile")) => false irb(main):003:0> File.exist?(File.expand_path("~/.profile")) => true HTH -- Luis Lavena AREA 17 - Perfection in design is achieved not when there is nothing more to add, but rather when there is nothing more to take away. Antoine de Saint-Exup�ry