Skip to content

Commit

Permalink
FileNotFoundException in Windows
Browse files Browse the repository at this point in the history
  • Loading branch information
lachmart authored and xificurk committed Aug 23, 2022
1 parent 5498a1c commit 26696d7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/BustCache/FileSystem/LocalFileSystem.php
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ public function getFile(Path $path): File
if (! is_file($fullLocalPath->toString())) {
throw FileNotFoundException::at($fullLocalPath->toString());
}
if (! str_starts_with((string) realpath($fullLocalPath->toString()), realpath($this->baseDirectoryPath->toString()) . '/')) {
if (! str_starts_with((string) realpath($fullLocalPath->toString()), realpath($this->baseDirectoryPath->toString()) . DIRECTORY_SEPARATOR)) {
throw FileNotFoundException::inBaseDirectory($fullLocalPath->toString(), $this->baseDirectoryPath->toString());
}
return File::fromLocalPath($fullLocalPath);
Expand Down

0 comments on commit 26696d7

Please sign in to comment.