Webiny\Component\Amazon\Bridge\S3\S3::doesBucketExist PHP 메소드

doesBucketExist() 공개 메소드

Determines whether or not a bucket exists by name
public doesBucketExist ( string $bucket, boolean $accept403 = true, array $params = [] ) : boolean
$bucket string The name of the bucket
$accept403 boolean Set to true if 403s are acceptable
$params array Additional options to add to the executed command
리턴 boolean
    public function doesBucketExist($bucket, $accept403 = true, array $params = [])
    {
        return $this->instance->doesBucketExist($bucket, $accept403, $params);
    }

Usage Example

예제 #1
0
파일: S3.php 프로젝트: Webiny/Framework
 /**
  * Determines whether or not a bucket exists by name
  *
  * @param string $bucket    The name of the bucket
  * @param bool   $accept403 Set to true if 403s are acceptable
  * @param array  $params    Additional options to add to the executed command
  *
  * @return bool
  */
 public function doesBucketExist($bucket, $accept403 = true, array $params = [])
 {
     return $this->instance->doesBucketExist($bucket, $accept403, $params);
 }