📌  相关文章
📜  检查对象是否存在于 s3 存储桶 laravel - TypeScript 代码示例

📅  最后修改于: 2022-03-11 14:48:30.903000             🧑  作者: Mango

代码示例2
Gets whether or not the specified Amazon S3 object exists in the specified bucket.
AmazonS3 doesObjectExist
$s3 = new AmazonS3();
$bucket = 'my-bucket' . strtolower($s3->key);
$response = $s3->doesObjectExist($bucket, 'test1.txt');
// Success? (Boolean, not a CFResponse object)
var_dump($response);