mirror of
https://github.com/nextcloud/server.git
synced 2025-03-13 07:53:51 +00:00
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>
This commit is contained in:
parent
b282fe1e6f
commit
940b5e8f0a
1 changed files with 1 additions and 1 deletions
|
@ -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;
|
||||
|
|
Loading…
Reference in a new issue