Skip to content

Commit ea9f139

Browse files
committed
Fixing missing file check with sub-paths
1 parent 3258215 commit ea9f139

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

src/CI/MissingFilesChecker.php

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,10 +31,12 @@ public function getMissingFiles(): array
3131
$orphanedFiles = [];
3232

3333
foreach ($this->finder as $file) {
34+
$sourcePath = ltrim(substr($file->getPathname(), strlen($this->buildContext->getSourceDir())), '/');
35+
3436
$htmlFile = sprintf(
3537
'%s/%s.html',
3638
$this->buildContext->getOutputDir(),
37-
$file->getFilenameWithoutExtension()
39+
substr($sourcePath, 0, strlen($sourcePath) - 4)
3840
);
3941

4042
$firstLine = fgets(fopen($file->getRealPath(), 'r'));

0 commit comments

Comments
 (0)