From 5448429f0b46d91e39b2ca4d7af3f1c8b0d007b5 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 7aadfd6791426..ff97b57fe3379 100644 --- a/core/Command/Info/File.php +++ b/core/Command/Info/File.php @@ -96,7 +96,9 @@ public function execute(InputInterface $input, OutputInterface $output): int { }, $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) . ':');