Merge pull request #56435 from nextcloud/backport/55485/stable31

[stable31] fix: don't suggest files:scan with object store in info:file
pull/56839/head
Daniel 2025-12-03 16:16:13 +07:00 committed by GitHub
commit 8595956074
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 3 additions and 1 deletions

@ -96,7 +96,9 @@ class File extends Command {
}, $children));
if ($childSize != $node->getSize()) {
$output->writeln(' <error>warning: folder has a size of ' . Util::humanFileSize($node->getSize()) . " but it's children sum up to " . Util::humanFileSize($childSize) . '</error>.');
$output->writeln(' Run <info>occ files:scan --path ' . $node->getPath() . '</info> to attempt to resolve this.');
if (!$node->getStorage()->instanceOfStorage(ObjectStoreStorage::class)) {
$output->writeln(' Run <info>occ files:scan --path ' . $node->getPath() . '</info> to attempt to resolve this.');
}
}
if ($showChildren) {
$output->writeln(' children: ' . count($children) . ':');