Skip to content

Commit b95989a

Browse files
icewind1991backportbot[bot]
authored andcommitted
fix: don't suggest files:scan with object store in info:file
Signed-off-by: Robin Appelman <[email protected]>
1 parent 2cd3b60 commit b95989a

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

core/Command/Info/File.php

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -100,7 +100,9 @@ public function execute(InputInterface $input, OutputInterface $output): int {
100100
}, $children));
101101
if ($childSize != $node->getSize()) {
102102
$output->writeln(' <error>warning: folder has a size of ' . Util::humanFileSize($node->getSize()) . " but it's children sum up to " . Util::humanFileSize($childSize) . '</error>.');
103-
$output->writeln(' Run <info>occ files:scan --path ' . $node->getPath() . '</info> to attempt to resolve this.');
103+
if (!$node->getStorage()->instanceOfStorage(ObjectStoreStorage::class)) {
104+
$output->writeln(' Run <info>occ files:scan --path ' . $node->getPath() . '</info> to attempt to resolve this.');
105+
}
104106
}
105107
if ($showChildren) {
106108
$output->writeln(' children: ' . count($children) . ':');

0 commit comments

Comments
 (0)