Skip to content

Commit

Permalink
Replace DIRECTORY_SEPARATOR with '/' (#1) (#69)
Browse files Browse the repository at this point in the history
This pull request aims to fix zips created on windows with a broken folder structure which doesn't match the lambda function handler.
  • Loading branch information
w00key authored May 11, 2022
1 parent 651381a commit ca923f7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Package.php
Original file line number Diff line number Diff line change
Expand Up @@ -413,7 +413,7 @@ protected function prependBasePath($path)
{
$path = $this->removeBasePath($path);

return $this->getBasePath() . ($path ? DIRECTORY_SEPARATOR . $path : $path);
return $this->getBasePath() . ($path ? '/' . $path : $path);
}

/**
Expand Down

0 comments on commit ca923f7

Please sign in to comment.