]> source.dussan.org Git - nextcloud-server.git/commitdiff
wait until bucket exists after the creation
authorChristian Berendt <berendt@b1-systems.de>
Mon, 8 Jul 2013 13:00:07 +0000 (15:00 +0200)
committerChristian Berendt <berendt@b1-systems.de>
Mon, 8 Jul 2013 13:00:07 +0000 (15:00 +0200)
apps/files_external/lib/amazons3.php

index f6e35dc2587bc5c69b1ce6a3634daa2ad5f5a215..bb0ccb2beebd90bc377a8ef7c14b4ad864e7313f 100644 (file)
@@ -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('.')) {