From e9d101aa5d99fa6b464dbef817199dcfc7f93ca3 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 7181f972875ff..361bfd58c0cd8 100644 --- a/core/Command/Info/File.php +++ b/core/Command/Info/File.php @@ -100,7 +100,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) . ':');