Reuse information from ListObjects for stat / filetype

Signed-off-by: Daniel Kesselberg <mail@danielkesselberg.de>
This commit is contained in:
Daniel Kesselberg 2018-09-30 21:05:53 +02:00
parent 8d277e5cad
commit 67d5380b91
No known key found for this signature in database
GPG Key ID: 36E3664E099D0614
1 changed files with 5 additions and 0 deletions

View File

@ -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'],
]);
}
}
}