1

When trying to use deleteObjects() or deleteMatchingObjects() from AWS PHP SDK S3Client class, I get the following error:

include([cut]/src/Aws/S3/Command/DeleteMultipleObjects.php): failed to open stream: No such file or directory 

I investigated a little and such file doesn't even exist within the whole project repository + checked directly: https://github.com/aws/aws-sdk-php/tree/master/src/Aws/S3/Command . The file isn't there.

However - it's quite hard to believe such thing hasn't been noticed yet. Where's the problem?

4

1 回答 1

0

看来,在 PHP 中,您将使用 S3Client 和方法 deleteObjects 来完成您要查找的内容(假设您有密钥)。

http://docs.aws.amazon.com/aws-sdk-php/latest/class-Aws.S3.S3Client.html#_deleteObjects

或者,您可以使用 deleteMatchingObjects 使用正则表达式搜索删除对象:

http://docs.aws.amazon.com/aws-sdk-php/latest/class-Aws.S3.S3Client.html#_deleteMatchingObjects

于 2015-04-06T13:40:35.333 回答