method
file_exist?
v2.2.1 -
Show latest stable
- Class:
Rails::Rack::Static
file_exist?(path)private
No documentation available.
# File railties/lib/rails/rack/static.rb, line 29
def file_exist?(path)
full_path = File.join(@file_server.root, ::Rack::Utils.unescape(path))
File.file?(full_path) && File.readable?(full_path)
end