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

fix: don't suggest files:scan with object store in info:file
pull/56437/head
Daniel 2025-11-14 12:03:40 +07:00 committed by GitHub
commit 4d23a952c1
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 3 additions and 1 deletions

@ -100,7 +100,9 @@ class File extends Command {
}, $children)); }, $children));
if ($childSize != $node->getSize()) { 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(' <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) { if ($showChildren) {
$output->writeln(' children: ' . count($children) . ':'); $output->writeln(' children: ' . count($children) . ':');