instance method
ensure_cache_path
Ruby on Rails 8.1.2
Since v2.2.3 PrivateSignature
ensure_cache_path(path)
Make sure a file path’s directories exist.
Parameters
-
pathreq
Source
# File activesupport/lib/active_support/cache/file_store.rb, line 204
def ensure_cache_path(path)
FileUtils.makedirs(path) unless File.exist?(path)
end
Defined in activesupport/lib/active_support/cache/file_store.rb line 204
· View on GitHub
· Improve this page
· Find usages on GitHub
Defined in ActiveSupport::Cache::FileStore