instance method directory_exist?

Ruby on Rails 3.0.20

Since v3.0.20 Last seen in v3.0.20 Private

Signature

directory_exist?(path)

No documentation comment.

Parameters

path req
Source
# File actionpack/lib/action_dispatch/middleware/static.rb, line 39
      def directory_exist?(path)
        full_path = File.join(@file_server.root, ::Rack::Utils.unescape(path))
        File.directory?(full_path) && File.readable?(full_path)
      end

Defined in actionpack/lib/action_dispatch/middleware/static.rb line 39 · View on GitHub · Improve this page · Find usages on GitHub

Defined in ActionDispatch::Static

Type at least 2 characters to search.

↑↓ navigate · open · esc close