Skip to content

Commit

Permalink
Merge pull request #32982 from nextcloud/fix/metadata-extraction
Browse files Browse the repository at this point in the history
Fix metadata extraction
  • Loading branch information
CarlSchwan authored Jun 28, 2022
2 parents 41e6e0c + 940b5e8 commit a1bc770
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/private/Files/FileInfo.php
Original file line number Diff line number Diff line change
Expand Up @@ -101,7 +101,7 @@ public function __construct($path, $storage, $internalPath, $data, $mount, $owne
$this->data = $data;
$this->mount = $mount;
$this->owner = $owner;
if (isset($this->data['unencrypted_size'])) {
if (isset($this->data['unencrypted_size']) && $this->data['unencrypted_size'] !== 0) {
$this->rawSize = $this->data['unencrypted_size'];
} else {
$this->rawSize = $this->data['size'] ?? 0;
Expand Down

0 comments on commit a1bc770

Please sign in to comment.