Merge pull request #51766 from nextcloud/info-file-permissions

feat: show permissions in info:file output
pull/52396/head
Andy Scherzinger 2025-04-23 23:42:20 +07:00 committed by GitHub
commit 25ef415e14
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 1 additions and 0 deletions

@ -79,6 +79,7 @@ class File extends Command {
$output->writeln(' size: ' . Util::humanFileSize($node->getSize()));
$output->writeln(' etag: ' . $node->getEtag());
$output->writeln(' permissions: ' . $this->fileUtils->formatPermissions($node->getType(), $node->getPermissions()));
if ($node instanceof Folder) {
$children = $node->getDirectoryListing();
$childSize = array_sum(array_map(function (Node $node) {