instance method
search_dir
Ruby on Rails 5.2.8.1
Since v2.2.3 PrivateSignature
search_dir(dir, &callback)
No documentation comment.
Parameters
-
dirreq -
callbackblock
Source
# File activesupport/lib/active_support/cache/file_store.rb, line 161
def search_dir(dir, &callback)
return if !File.exist?(dir)
Dir.foreach(dir) do |d|
next if EXCLUDED_DIRS.include?(d)
name = File.join(dir, d)
if File.directory?(name)
search_dir(name, &callback)
else
callback.call name
end
end
end
Defined in activesupport/lib/active_support/cache/file_store.rb line 161
· View on GitHub
· Improve this page
· Find usages on GitHub
Defined in ActiveSupport::Cache::FileStore