class ActiveSupport::Cache::FileStore

def ensure_cache_path(path)

Make sure a file path's directories exist.
def ensure_cache_path(path)
  FileUtils.makedirs(path) unless File.exist?(path)
end