summaryrefslogtreecommitdiffstats
path: root/core/Command/Info/File.php
diff options
context:
space:
mode:
authorRobin Appelman <robin@icewind.nl>2023-05-09 14:56:37 +0200
committerRobin Appelman <robin@icewind.nl>2023-05-09 14:56:37 +0200
commitcdcd6f2872237095e1d4ccd288f4571e188019ee (patch)
tree109041b2506a7dd96583c8e907a76e1739069d56 /core/Command/Info/File.php
parent53957cf35b4376846d8d48202f7d42d5ea7a0ccb (diff)
downloadnextcloud-server-cdcd6f2872237095e1d4ccd288f4571e188019ee.tar.gz
nextcloud-server-cdcd6f2872237095e1d4ccd288f4571e188019ee.zip
also show file etag in file info
Signed-off-by: Robin Appelman <robin@icewind.nl>
Diffstat (limited to 'core/Command/Info/File.php')
-rw-r--r--core/Command/Info/File.php1
1 files changed, 1 insertions, 0 deletions
diff --git a/core/Command/Info/File.php b/core/Command/Info/File.php
index 20d8cbffc94..238c1e28140 100644
--- a/core/Command/Info/File.php
+++ b/core/Command/Info/File.php
@@ -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) {