diff --git a/core/Command/Info/File.php b/core/Command/Info/File.php
index 952d4bf8e5e..eb9657e62c3 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) . ':');