Skip to content

Commit

Permalink
Fixed filesystem bug returning incorrect last directory separator whe…
Browse files Browse the repository at this point in the history
…n using ::files (#19157)
  • Loading branch information
thetomcake authored and taylorotwell committed May 11, 2017
1 parent 6727713 commit 84946b7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Illuminate/Filesystem/Filesystem.php
Original file line number Diff line number Diff line change
Expand Up @@ -374,7 +374,7 @@ public function glob($pattern, $flags = 0)
*/
public function files($directory)
{
$glob = glob($directory.'/*');
$glob = glob($directory.DIRECTORY_SEPARATOR.'*');

if ($glob === false) {
return [];
Expand Down

0 comments on commit 84946b7

Please sign in to comment.