Skip to content

Commit 8595956

Browse files
authored
Merge pull request #56435 from nextcloud/backport/55485/stable31
[stable31] fix: don't suggest files:scan with object store in info:file
2 parents adfbefb + 5448429 commit 8595956

1 file changed

Lines changed: 3 additions & 1 deletion

File tree

core/Command/Info/File.php

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

0 commit comments

Comments
 (0)