mirror of
https://github.com/nextcloud/server.git
synced 2026-06-09 08:44:07 -04:00
perf(files): Only request directories from the database
Signed-off-by: Carl Schwan <carlschwan@kde.org>
This commit is contained in:
parent
95d7b5608b
commit
0e66ed2233
1 changed files with 1 additions and 1 deletions
|
|
@ -287,7 +287,7 @@ class ApiController extends Controller {
|
|||
*/
|
||||
private function getParents(Folder $currentFolder, string $root, array $children): array {
|
||||
$parentFolder = $currentFolder->getParent();
|
||||
$parentContent = array_filter($parentFolder->getDirectoryListing(), fn (Node $node) => $node instanceof Folder);
|
||||
$parentContent = $parentFolder->getDirectoryListing('httpd/unix-directory');
|
||||
$parentData = array_map(fn (Folder $node) => [
|
||||
'id' => $node->getId(),
|
||||
'basename' => basename($node->getPath()),
|
||||
|
|
|
|||
Loading…
Reference in a new issue