method

file_readable?

Importance_0
Ruby on Rails latest stable (v6.1.7.7) - 0 notes - Class: FileHandler
file_readable?(path) private

No documentation

This method has no description. You can help the Ruby on Rails community by adding new notes.

Hide source
# 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
Register or log in to add new notes.