instance method
file_exist?
Ruby on Rails 3.0.20
Since v3.0.20 Last seen in v3.0.20 PrivateSignature
file_exist?(path)
No documentation comment.
Parameters
-
pathreq
Source
# File actionpack/lib/action_dispatch/middleware/static.rb, line 34
def file_exist?(path)
full_path = File.join(@file_server.root, ::Rack::Utils.unescape(path))
File.file?(full_path) && File.readable?(full_path)
end
Defined in actionpack/lib/action_dispatch/middleware/static.rb line 34
· View on GitHub
· Improve this page
· Find usages on GitHub
Defined in ActionDispatch::Static