From fdeb21ba5babc1df653a23a4147bd8558797b522 Mon Sep 17 00:00:00 2001 From: Christian Berendt Date: Mon, 8 Jul 2013 15:00:07 +0200 Subject: [PATCH] wait until bucket exists after the creation --- apps/files_external/lib/amazons3.php | 3 +++ 1 file changed, 3 insertions(+) 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('.')) {