Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
fix: don't show object size warning if we can't determine the object …
…size

Signed-off-by: Robin Appelman <[email protected]>
  • Loading branch information
icewind1991 authored and AndyScherzinger committed Sep 11, 2025
commit d53c3f61cb1901ea746de5b29a300e6ebfc8fc2c
2 changes: 1 addition & 1 deletion core/Command/Info/File.php
Original file line number Diff line number Diff line change
Expand Up @@ -153,7 +153,7 @@ private function outputStorageDetails(IMountPoint $mountPoint, Node $node, Input
}
$stat = fstat($fh);
fclose($fh);
if ($stat['size'] !== $node->getSize()) {
if (isset($stat['size']) && $stat['size'] !== $node->getSize()) {
$output->writeln(' <error>warning: object had a size of ' . $stat['size'] . ' but cache entry has a size of ' . $node->getSize() . '</error>. This should have been automatically repaired');
}
} catch (\Exception $e) {
Expand Down
Loading