mirror of
https://github.com/nextcloud/server.git
synced 2026-06-10 09:13:19 -04:00
Reuse information from ListObjects for stat / filetype
Signed-off-by: Daniel Kesselberg <mail@danielkesselberg.de>
This commit is contained in:
parent
8d277e5cad
commit
67d5380b91
1 changed files with 5 additions and 0 deletions
|
|
@ -301,6 +301,11 @@ class AmazonS3 extends \OC\Files\Storage\Common {
|
|||
isset($object['Key']) ? $object['Key'] : $object['Prefix']
|
||||
);
|
||||
$files[] = $file;
|
||||
|
||||
$this->objectCache->set($file, [
|
||||
'ContentLength' => $object['Size'],
|
||||
'LastModified' => (string)$object['LastModified'],
|
||||
]);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue