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) . ':');