Skip to content

Commit 2e5e5a7

Browse files
committed
Use glob() instead of File::files() and File::directories()
1 parent a374ed0 commit 2e5e5a7

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Controllers/MediaController.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ public static function folders($slug = 'media', $path = null, $id = null, $depth
3737
if (!$path) {
3838
$path = config('admin.media_path');
3939
}
40-
$directories = File::directories($path);
40+
$directories = glob($path.'/*', GLOB_ONLYDIR);
4141
natcasesort($directories);
4242
// Initialize the response
4343
$response = '';

0 commit comments

Comments
 (0)