public function createBucket($bucket_name)
    {
        if ($this->doesBucketExist($bucket_name)) {
            $this->addMessage("Bucket $bucket_name already exists");
            return true;
        }

        if (mkdir('s3://' . $bucket_name)) {
            return true;
        } else {
            $this->addMessage('Could not create bucket ' . $bucket_name);
            return false;
        }
    }
public function createBucket($bucket_name)
    {
        if ($this->doesBucketExist($bucket_name)) {
            $this->addMessage("Bucket $bucket_name already exists");
            return true;
        }

        if (mkdir('s3://' . $bucket_name)) {
            return true;
        } else {
            $this->addMessage('Could not create bucket ' . $bucket_name);
            return false;
        }
    }
public function createBucket ( $ bucket_name ) { if ( $ this -> doesBucketExist ( $ bucket_name ) ) { $ this -> addMessage ( "Bucket $bucket_name already exists" ) ; return true ; } if ( mkdir ( 's3://' . $ bucket_name ) ) { return true ; } else { $ this -> addMessage ( 'Could not create bucket ' . $ bucket_name ) ; return false ; } }
Create a S3 Bucket
@author Adeyemi Olaoye <yemi@cottacush.com>
@param $bucket_name
@return bool
Create a S3 Bucket