diff --git a/src/Http/Services/GetFiles.php b/src/Http/Services/GetFiles.php index 7fdc898..83a91b6 100644 --- a/src/Http/Services/GetFiles.php +++ b/src/Http/Services/GetFiles.php @@ -436,7 +436,7 @@ public function generateParent($folder) if ($paths) { $folderPath = $paths->implode('/'); - if ($folderPath == $folder) { + if ($folderPath == $folder || strlen($folderPath) === 0) { $folderPath = '/'; }