summaryrefslogtreecommitdiffstats
path: root/lib/private/Files
diff options
context:
space:
mode:
authorRobin Appelman <robin@icewind.nl>2019-05-24 14:02:03 +0200
committerRobin Appelman <robin@icewind.nl>2019-05-24 14:02:03 +0200
commit834db3af2c89480cd7dec7c2cc8df22279ae21a4 (patch)
tree7aa1876472d1af00c59b153677a852ab9196cbf4 /lib/private/Files
parentf2885c171f5fc3b3dc54b612454616f5a929132a (diff)
downloadnextcloud-server-834db3af2c89480cd7dec7c2cc8df22279ae21a4.tar.gz
nextcloud-server-834db3af2c89480cd7dec7c2cc8df22279ae21a4.zip
add method to get bucket name from s3 storage
Signed-off-by: Robin Appelman <robin@icewind.nl>
Diffstat (limited to 'lib/private/Files')
-rw-r--r--lib/private/Files/ObjectStore/S3ConnectionTrait.php5
1 files changed, 4 insertions, 1 deletions
diff --git a/lib/private/Files/ObjectStore/S3ConnectionTrait.php b/lib/private/Files/ObjectStore/S3ConnectionTrait.php
index b2bb6d706e0..4cd25878ec5 100644
--- a/lib/private/Files/ObjectStore/S3ConnectionTrait.php
+++ b/lib/private/Files/ObjectStore/S3ConnectionTrait.php
@@ -65,6 +65,9 @@ trait S3ConnectionTrait {
$this->params = $params;
}
+ public function getBucket() {
+ return $this->bucket;
+ }
/**
* Returns the connection
@@ -72,7 +75,7 @@ trait S3ConnectionTrait {
* @return S3Client connected client
* @throws \Exception if connection could not be made
*/
- protected function getConnection() {
+ public function getConnection() {
if (!is_null($this->connection)) {
return $this->connection;
}