Webiny\Component\Amazon\Bridge\S3\S3::doesObjectExist PHP Method

doesObjectExist() public method

Determines whether or not an object exists by name
public doesObjectExist ( string $bucket, string $key, array $params = [] ) : boolean
$bucket string The name of the bucket
$key string The key of the object
$params array Additional options to add to the executed command
return boolean
    public function doesObjectExist($bucket, $key, array $params = [])
    {
        return $this->instance->doesObjectExist($bucket, $key, $params);
    }

Usage Example

示例#1
0
文件: S3.php 项目: Webiny/Framework
 /**
  * Determines whether or not an object exists by name
  *
  * @param string $bucket The name of the bucket
  * @param string $key    The key of the object
  * @param array  $params Additional options to add to the executed command
  *
  * @return bool
  */
 public function doesObjectExist($bucket, $key, array $params = [])
 {
     return $this->instance->doesObjectExist($bucket, $key, $params);
 }