private function paths(): \Generator
    {
        foreach ($this->directories() as $root => $directory) {
            foreach ($directory as $file) {
                if (preg_match(self::PATTERN, $file->getFilename()) === 1) {
                    yield $root => $file->getPathname();
                }
            }
        }
    }