diff options
author | Carl Schwan <carl@carlschwan.eu> | 2022-06-22 17:27:09 +0200 |
---|---|---|
committer | Carl Schwan <carl@carlschwan.eu> | 2022-06-22 17:27:09 +0200 |
commit | 940b5e8f0a0eaf2092a870bfa2ed48ed90a26a7e (patch) | |
tree | 6c71970769b874769c7f0cc03500ab747bd44500 | |
parent | b282fe1e6f5587a6440d170df245ad5acb8dc976 (diff) | |
download | nextcloud-server-940b5e8f0a0eaf2092a870bfa2ed48ed90a26a7e.tar.gz nextcloud-server-940b5e8f0a0eaf2092a870bfa2ed48ed90a26a7e.zip |
Fix metadata extraction
The metadata extraction only happens when the size is not equal to 0,
but due to a regression in FileInfo the size is always zero.
This fix the regression.
Signed-off-by: Carl Schwan <carl@carlschwan.eu>
-rw-r--r-- | lib/private/Files/FileInfo.php | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/private/Files/FileInfo.php b/lib/private/Files/FileInfo.php index 5912eefcf9c..7a984429d1f 100644 --- a/lib/private/Files/FileInfo.php +++ b/lib/private/Files/FileInfo.php @@ -101,7 +101,7 @@ class FileInfo implements \OCP\Files\FileInfo, \ArrayAccess { $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; |