Skip to content

Commit 33888f2

Browse files
Merge pull request #4154 from nextcloud/backport/4132/stable32
2 parents 3c73b0c + 8f76ca6 commit 33888f2

File tree

2 files changed

+10
-3
lines changed

2 files changed

+10
-3
lines changed

β€Žlib/Command/ListCommand.phpβ€Ž

Lines changed: 9 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -84,11 +84,17 @@ protected function execute(InputInterface $input, OutputInterface $output): int
8484
foreach ($formatted as &$folder) {
8585
$folder['size'] = $folder['root_cache_entry']->getSize();
8686
unset($folder['root_cache_entry']);
87-
$folder['group_details'] = $folder['groups'];
88-
$folder['groups'] = array_map(fn (array $group): int => $group['permissions'], $folder['groups']);
87+
$folder['groups_list'] = array_map(fn (array $group): int => $group['permissions'], $folder['groups']);
88+
$folder['options'] = $folder['options'];
89+
$folder['mountPoint'] = $folder['mount_point'];
90+
unset($folder['mount_point']);
91+
$folder['rootId'] = $folder['root_id'];
92+
unset($folder['root_id']);
93+
$folder['storageId'] = $folder['storage_id'];
94+
unset($folder['storage_id']);
8995
}
9096

91-
$this->writeArrayInOutputFormat($input, $output, $folders);
97+
$this->writeArrayInOutputFormat($input, $output, $formatted);
9298
} else {
9399
$table = new Table($output);
94100
$table->setHeaders(['Folder Id', 'Name', 'Groups', 'Quota', 'Size', 'Advanced Permissions', 'Manage advanced permissions']);

β€Žlib/Folder/FolderWithMappingsAndCache.phpβ€Ž

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -65,6 +65,7 @@ public function toArray(): array {
6565
'root_cache_entry' => $this->rootCacheEntry,
6666
'groups' => $this->groups,
6767
'manage' => $this->manage,
68+
'options' => $this->options,
6869
];
6970
}
7071
}

0 commit comments

Comments
Β (0)