diff options
author | Daniel Kesselberg <mail@danielkesselberg.de> | 2018-09-30 21:05:53 +0200 |
---|---|---|
committer | Daniel Kesselberg <mail@danielkesselberg.de> | 2018-09-30 21:05:53 +0200 |
commit | 67d5380b91a1c970a62d04dc82e1ccae10d0d862 (patch) | |
tree | f340e910884358ce16c825571d2121f5103b7014 | |
parent | 8d277e5cad82bcbeb7decae0fca48cbb3b1e2d20 (diff) | |
download | nextcloud-server-67d5380b91a1c970a62d04dc82e1ccae10d0d862.tar.gz nextcloud-server-67d5380b91a1c970a62d04dc82e1ccae10d0d862.zip |
Reuse information from ListObjects for stat / filetype
Signed-off-by: Daniel Kesselberg <mail@danielkesselberg.de>
-rw-r--r-- | apps/files_external/lib/Lib/Storage/AmazonS3.php | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/apps/files_external/lib/Lib/Storage/AmazonS3.php b/apps/files_external/lib/Lib/Storage/AmazonS3.php index 097b196b2d4..94ada029809 100644 --- a/apps/files_external/lib/Lib/Storage/AmazonS3.php +++ b/apps/files_external/lib/Lib/Storage/AmazonS3.php @@ -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'], + ]); } } } |