private function scanRootPath(string $rootPath) { foreach (glob($rootPath . DIRECTORY_SEPARATOR . '*', GLOB_ONLYDIR) as $dir) { $this->scanDir($dir); } }