Skip to content

Commit 906de48

Browse files
committed
Bugfix missing directory scan
1 parent 3286c58 commit 906de48

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

src/Handlers/DirectoryHandler.php

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,8 +33,12 @@ public function gather(string $route): array
3333
public function gatherFromDirectory(string $directory): array
3434
{
3535
$directory = rtrim($directory, '/') . '/';
36-
$paths = [];
36+
if (! is_dir($directory))
37+
{
38+
return [];
39+
}
3740

41+
$paths = [];
3842
foreach (directory_map($directory, 1) as $item)
3943
{
4044
// Make sure it is a desired asset file

0 commit comments

Comments
 (0)