去除多余的/
This commit is contained in:
parent
4f80078a15
commit
ed975a94fe
|
|
@ -29,7 +29,7 @@ class FileManagerService
|
||||||
*/
|
*/
|
||||||
public function getDirectories($baseFolder = '/'): array
|
public function getDirectories($baseFolder = '/'): array
|
||||||
{
|
{
|
||||||
$currentBasePath = $this->fileBasePath . $baseFolder;
|
$currentBasePath = rtrim($this->fileBasePath . $baseFolder, '/');
|
||||||
$directories = glob("{$currentBasePath}/*", GLOB_ONLYDIR);
|
$directories = glob("{$currentBasePath}/*", GLOB_ONLYDIR);
|
||||||
|
|
||||||
$result = [];
|
$result = [];
|
||||||
|
|
|
||||||
Binary file not shown.
|
After Width: | Height: | Size: 60 KiB |
Loading…
Reference in New Issue