public function clear() { foreach (Finder::create()->files()->name('*.json')->in($this->dirname) as $file) { $this->files->delete($file->getRealPath()); } }