fix: don't suggest files:scan with object store in info:file

Signed-off-by: Robin Appelman <robin@icewind.nl>
This commit is contained in:
Robin Appelman 2025-10-01 17:36:36 +02:00 committed by Andy Scherzinger
parent adfbefb8b7
commit 5448429f0b

View file

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