]> source.dussan.org Git - nextcloud-server.git/commitdiff
also show file etag in file info 38148/head
authorRobin Appelman <robin@icewind.nl>
Tue, 9 May 2023 12:56:37 +0000 (14:56 +0200)
committerRobin Appelman <robin@icewind.nl>
Tue, 9 May 2023 12:56:37 +0000 (14:56 +0200)
Signed-off-by: Robin Appelman <robin@icewind.nl>
core/Command/Info/File.php

index 20d8cbffc94e4ef7d2262d4c862d9f004bd744ec..238c1e2814021d6202c7ec4f4529e39988fc342d 100644 (file)
@@ -54,6 +54,7 @@ class File extends Command {
                $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) {