Reuse information from ListObjects for stat / filetype
Signed-off-by: Daniel Kesselberg <mail@danielkesselberg.de>
This commit is contained in:
parent
8d277e5cad
commit
67d5380b91
|
@ -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 New Issue