method
file_readable?
v6.1.3.1 -
Show latest stable
- Class:
ActionDispatch::FileHandler
file_readable?(path)private
No documentation available.
# File actionpack/lib/action_dispatch/middleware/static.rb, line 139
def file_readable?(path)
file_stat = File.stat(File.join(@root, path.b))
rescue SystemCallError
false
else
file_stat.file? && file_stat.readable?
end