Skip to content

Commit 25ef415

Browse files
Merge pull request #51766 from nextcloud/info-file-permissions
feat: show permissions in info:file output
2 parents f5f5a07 + f436ab0 commit 25ef415

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

core/Command/Info/File.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -79,6 +79,7 @@ public function execute(InputInterface $input, OutputInterface $output): int {
7979

8080
$output->writeln(' size: ' . Util::humanFileSize($node->getSize()));
8181
$output->writeln(' etag: ' . $node->getEtag());
82+
$output->writeln(' permissions: ' . $this->fileUtils->formatPermissions($node->getType(), $node->getPermissions()));
8283
if ($node instanceof Folder) {
8384
$children = $node->getDirectoryListing();
8485
$childSize = array_sum(array_map(function (Node $node) {

0 commit comments

Comments
 (0)