summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDaniel Kesselberg <mail@danielkesselberg.de>2018-09-30 21:05:53 +0200
committerDaniel Kesselberg <mail@danielkesselberg.de>2018-09-30 21:05:53 +0200
commit67d5380b91a1c970a62d04dc82e1ccae10d0d862 (patch)
treef340e910884358ce16c825571d2121f5103b7014
parent8d277e5cad82bcbeb7decae0fca48cbb3b1e2d20 (diff)
downloadnextcloud-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.php5
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'],
+ ]);
}
}
}