Skip to content

Commit

Permalink
Merge pull request #38148 from nextcloud/file-info-etag
Browse files Browse the repository at this point in the history
also show file etag in file info
  • Loading branch information
icewind1991 committed May 11, 2023
2 parents 979f403 + cdcd6f2 commit 9d2d3d4
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions core/Command/Info/File.php
Expand Up @@ -54,6 +54,7 @@ public function execute(InputInterface $input, OutputInterface $output): int {
$output->writeln(" modified: " . (string)$this->l10n->l("datetime", $node->getMTime()));
$output->writeln(" " . ($node->isEncrypted() ? "encrypted" : "not encrypted"));
$output->writeln(" size: " . Util::humanFileSize($node->getSize()));
$output->writeln(" etag: " . $node->getEtag());
if ($node instanceof Folder) {
$children = $node->getDirectoryListing();
$childSize = array_sum(array_map(function (Node $node) {
Expand Down

0 comments on commit 9d2d3d4

Please sign in to comment.