Dir.exist?(path)

って何でないんだろう?(今さら……って感じもする)
誰も提案してないからかなー。
File.directory?(path) や File.exist?(path) があるけど。

class Dir
   def self.exist? dir
      File.directory?(dir)
   end
end

うーん、やっぱ pathname の領分だからクラスメソッドを増やすのは良くないのかな〜?


追記:
"File.exist?(dir) && " は全く要らなかった、ので除いた。