Browse Source

Merge pull request #54919 from nextcloud/info-file-size-warning-false

pull/54797/head
Kate 11 months ago
committed by GitHub
parent
commit
da73cc8950
No known key found for this signature in database GPG Key ID: B5690EEEBB952194
  1. 2
      core/Command/Info/File.php

2
core/Command/Info/File.php

@ -176,7 +176,7 @@ class File extends Command {
}
$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) {

Loading…
Cancel
Save