summaryrefslogtreecommitdiffstats
path: root/apps/files_external
diff options
context:
space:
mode:
authorChristian Berendt <berendt@b1-systems.de>2013-07-08 15:00:07 +0200
committerChristian Berendt <berendt@b1-systems.de>2013-07-08 15:00:07 +0200
commitfdeb21ba5babc1df653a23a4147bd8558797b522 (patch)
tree770f3240002722f73aaae18a8189bff9c57d8d70 /apps/files_external
parent911e947fd7c4d66cfbcffd9814dabe267ed813c4 (diff)
downloadnextcloud-server-fdeb21ba5babc1df653a23a4147bd8558797b522.tar.gz
nextcloud-server-fdeb21ba5babc1df653a23a4147bd8558797b522.zip
wait until bucket exists after the creation
Diffstat (limited to 'apps/files_external')
-rw-r--r--apps/files_external/lib/amazons3.php3
1 files changed, 3 insertions, 0 deletions
diff --git a/apps/files_external/lib/amazons3.php b/apps/files_external/lib/amazons3.php
index f6e35dc2587..bb0ccb2beeb 100644
--- a/apps/files_external/lib/amazons3.php
+++ b/apps/files_external/lib/amazons3.php
@@ -83,6 +83,9 @@ class AmazonS3 extends \OC\Files\Storage\Common {
$result = $this->connection->createBucket(array(
'Bucket' => $this->bucket
));
+ $this->connection->waitUntilBucketExists(array(
+ 'Bucket' => $this->bucket
+ ));
}
if ( ! $this->file_exists('.')) {