We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 3286c58 commit 906de48Copy full SHA for 906de48
src/Handlers/DirectoryHandler.php
@@ -33,8 +33,12 @@ public function gather(string $route): array
33
public function gatherFromDirectory(string $directory): array
34
{
35
$directory = rtrim($directory, '/') . '/';
36
- $paths = [];
+ if (! is_dir($directory))
37
+ {
38
+ return [];
39
+ }
40
41
+ $paths = [];
42
foreach (directory_map($directory, 1) as $item)
43
44
// Make sure it is a desired asset file
0 commit comments