diff options
author | Christian Berendt <berendt@b1-systems.de> | 2013-07-08 15:00:07 +0200 |
---|---|---|
committer | Christian Berendt <berendt@b1-systems.de> | 2013-07-08 15:00:07 +0200 |
commit | fdeb21ba5babc1df653a23a4147bd8558797b522 (patch) | |
tree | 770f3240002722f73aaae18a8189bff9c57d8d70 /apps/files_external | |
parent | 911e947fd7c4d66cfbcffd9814dabe267ed813c4 (diff) | |
download | nextcloud-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.php | 3 |
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('.')) { |