WP_CLI
FileCache::get_finder
Get a Finder that iterates in cache root only the files
Method of the class: FileCache{}
No Hooks.
Returns
Finder.
Usage
// protected - for code of main (parent) or child class $result = $this->get_finder();
FileCache::get_finder() FileCache::get finder code WP-CLI 2.13.0-alpha
protected function get_finder() {
return Finder::create()->in( $this->root )->files();
}