use File.directory? as Dir.exists? is only 1.9.2+

This commit is contained in:
Aaron Patterson 2011-08-01 17:29:03 -07:00 committed by Xavier Noria
parent f9a69e8744
commit 8293b10425

@ -171,9 +171,9 @@ def expanded
def existent
expanded.select { |f| File.exists?(f) }
end
def existent_directories
expanded.select {|d| Dir.exists?(d) }
expanded.select { |d| File.directory?(d) }
end
alias to_a expanded