instance method
existent
Ruby on Rails 7.1.6
Since v3.1.12Signature
existent()
Returns all expanded paths but only if they exist in the filesystem.
Source
# File railties/lib/rails/paths.rb, line 220
def existent
expanded.select do |f|
does_exist = File.exist?(f)
if !does_exist && File.symlink?(f)
raise "File #{f.inspect} is a symlink that does not point to a valid file"
end
does_exist
end
end
Defined in railties/lib/rails/paths.rb line 220
· View on GitHub
· Improve this page
· Find usages on GitHub
Defined in Rails::Paths::Path