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

Signed-off-by: Robin Appelman <robin@icewind.nl>
pull/55485/head
Robin Appelman 3 months ago
parent 3a687eac54
commit 0a499300c4
  1. 4
      core/Command/Info/File.php

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

Loading…
Cancel
Save