From 0a499300c4df5877f50dec363f9ea857dddce998 Mon Sep 17 00:00:00 2001 From: Robin Appelman Date: Wed, 1 Oct 2025 17:36:36 +0200 Subject: [PATCH] fix: don't suggest files:scan with object store in info:file Signed-off-by: Robin Appelman --- core/Command/Info/File.php | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/core/Command/Info/File.php b/core/Command/Info/File.php index 7181f972875..361bfd58c0c 100644 --- a/core/Command/Info/File.php +++ b/core/Command/Info/File.php @@ -100,7 +100,9 @@ class File extends Command { }, $children)); if ($childSize != $node->getSize()) { $output->writeln(' warning: folder has a size of ' . Util::humanFileSize($node->getSize()) . " but it's children sum up to " . Util::humanFileSize($childSize) . '.'); - $output->writeln(' Run occ files:scan --path ' . $node->getPath() . ' to attempt to resolve this.'); + if (!$node->getStorage()->instanceOfStorage(ObjectStoreStorage::class)) { + $output->writeln(' Run occ files:scan --path ' . $node->getPath() . ' to attempt to resolve this.'); + } } if ($showChildren) { $output->writeln(' children: ' . count($children) . ':');