Skip to content

Commit

Permalink
Adjust for configured paths not suffixed by a DirectorySeparator
Browse files Browse the repository at this point in the history
  • Loading branch information
doekenorg committed Feb 29, 2024
1 parent 5d13c77 commit fa56a30
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/FileEnumerator.php
Original file line number Diff line number Diff line change
Expand Up @@ -165,7 +165,7 @@ public function compileFileList(): void

foreach ($finder as $foundFile) {
$sourceAbsoluteFilepath = $foundFile->getPathname();
$sourceRelativeFilePath = str_replace($sourcePath, $sourceRelativePath, $sourceAbsoluteFilepath);
$sourceRelativeFilePath = str_replace(rtrim($sourcePath, DIRECTORY_SEPARATOR), rtrim($sourceRelativePath, DIRECTORY_SEPARATOR), $sourceAbsoluteFilepath);
$outputRelativeFilepath = str_replace($prefixToRemove, '', $sourceAbsoluteFilepath);

// For symlinked packages.
Expand Down

0 comments on commit fa56a30

Please sign in to comment.