diff options
author | Carl Schwan <carl@carlschwan.eu> | 2022-06-28 15:34:38 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-06-28 15:34:38 +0200 |
commit | a1bc7700439c6f06842d42e67a0474de9faef34d (patch) | |
tree | c01748ef53679c75a17f93e13dd64ae42870f9eb /lib/private/Files | |
parent | 41e6e0c646862e7d9958f202d994200ebc929047 (diff) | |
parent | 940b5e8f0a0eaf2092a870bfa2ed48ed90a26a7e (diff) | |
download | nextcloud-server-a1bc7700439c6f06842d42e67a0474de9faef34d.tar.gz nextcloud-server-a1bc7700439c6f06842d42e67a0474de9faef34d.zip |
Merge pull request #32982 from nextcloud/fix/metadata-extraction
Fix metadata extraction
Diffstat (limited to 'lib/private/Files')
-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; |