Skip to content

Commit d596ccb

Browse files
icewind1991backportbot[bot]
authored andcommitted
fix: don't suggest files:scan with object store in info:file
Signed-off-by: Robin Appelman <robin@icewind.nl>
1 parent 362a857 commit d596ccb

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

core/Command/Info/File.php

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -96,7 +96,9 @@ public function execute(InputInterface $input, OutputInterface $output): int {
9696
}, $children));
9797
if ($childSize != $node->getSize()) {
9898
$output->writeln(' <error>warning: folder has a size of ' . Util::humanFileSize($node->getSize()) . " but it's children sum up to " . Util::humanFileSize($childSize) . '</error>.');
99-
$output->writeln(' Run <info>occ files:scan --path ' . $node->getPath() . '</info> to attempt to resolve this.');
99+
if (!$node->getStorage()->instanceOfStorage(ObjectStoreStorage::class)) {
100+
$output->writeln(' Run <info>occ files:scan --path ' . $node->getPath() . '</info> to attempt to resolve this.');
101+
}
100102
}
101103
if ($showChildren) {
102104
$output->writeln(' children: ' . count($children) . ':');

0 commit comments

Comments
 (0)