去除多余的/

This commit is contained in:
Edward Yang 2022-07-22 14:20:52 +08:00
parent 4f80078a15
commit ed975a94fe
2 changed files with 1 additions and 1 deletions

View File

@ -29,7 +29,7 @@ class FileManagerService
*/
public function getDirectories($baseFolder = '/'): array
{
$currentBasePath = $this->fileBasePath . $baseFolder;
$currentBasePath = rtrim($this->fileBasePath . $baseFolder, '/');
$directories = glob("{$currentBasePath}/*", GLOB_ONLYDIR);
$result = [];

Binary file not shown.

After

Width:  |  Height:  |  Size: 60 KiB