existent()
Returns all expanded paths but only if they exist in the filesystem.
# File railties/lib/rails/paths.rb, line 208 def existent expanded.select { |f| File.exist?(f) } end