aboutsummaryrefslogtreecommitdiffstats
path: root/apps/files_external/lib
diff options
context:
space:
mode:
Diffstat (limited to 'apps/files_external/lib')
-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'],
+ ]);
}
}
}