Merge pull request #55485 from nextcloud/info-no-suggest-object-scan

fix: don't suggest files:scan with object store in info:file
This commit is contained in:
Daniel 2025-11-14 12:03:40 +01:00 committed by GitHub
commit 4d23a952c1
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -100,7 +100,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) . ':');