method
file_exist?
v3.0.0 -
Show latest stable
- Class:
ActionDispatch::Static
file_exist?(path)private
No documentation available.
# 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