summaryrefslogtreecommitdiffstats
path: root/lib/private/Files/ObjectStore/S3ObjectTrait.php
diff options
context:
space:
mode:
authorRobin Appelman <robin@icewind.nl>2020-11-05 16:30:05 +0100
committerRobin Appelman <robin@icewind.nl>2020-11-24 15:16:58 +0100
commit9d4848e86383afd1ec49aa81f606f2042def2133 (patch)
tree164177856713c1b64fa303bd87a7d03da949291d /lib/private/Files/ObjectStore/S3ObjectTrait.php
parentf37155d28ba1bc805eeb3abd445d3d965ecb34bd (diff)
downloadnextcloud-server-9d4848e86383afd1ec49aa81f606f2042def2133.tar.gz
nextcloud-server-9d4848e86383afd1ec49aa81f606f2042def2133.zip
use in objectstore copy
Signed-off-by: Robin Appelman <robin@icewind.nl>
Diffstat (limited to 'lib/private/Files/ObjectStore/S3ObjectTrait.php')
-rw-r--r--lib/private/Files/ObjectStore/S3ObjectTrait.php4
1 files changed, 4 insertions, 0 deletions
diff --git a/lib/private/Files/ObjectStore/S3ObjectTrait.php b/lib/private/Files/ObjectStore/S3ObjectTrait.php
index a390c6b4c7d..80b8a6f132d 100644
--- a/lib/private/Files/ObjectStore/S3ObjectTrait.php
+++ b/lib/private/Files/ObjectStore/S3ObjectTrait.php
@@ -124,4 +124,8 @@ trait S3ObjectTrait {
public function objectExists($urn) {
return $this->getConnection()->doesObjectExist($this->bucket, $urn);
}
+
+ public function copyObject($from, $to) {
+ $this->getConnection()->copy($this->getBucket(), $from, $this->getBucket(), $to);
+ }
}