protected function findFiles($root, $checksums, $type, $path, $mode) { $finder = new FileFinder($root); $finder->setGenerateChecksums($checksums)->excludePath("./exclude")->excludePath("subdir.txt")->withType($type)->withPath($path)->withSuffix('txt')->setForceMode($mode); $files = $finder->find(); return $files; }