private function coalesceIndexPath(string $dirPath) : \Generator
{
$dirPath = \rtrim($dirPath, "/") . "/";
foreach ($this->indexes as $indexFile) {
$coalescedPath = $dirPath . $indexFile;
if ((yield $this->filesystem->isfile($coalescedPath))) {
$stat = (yield $this->filesystem->stat($coalescedPath));
return [$coalescedPath, $stat];
}
}
}