List all Files in a S3 Directory with Zend Framework
问题 How I can list all files in an Amazon S3 Directory of a Bucket in PHP (and maybe with a helper from Zend Framework)? 回答1: See example #5: http://framework.zend.com/manual/en/zend.service.amazon.s3.html getObjectsByBucket($bucket) returns the list of the object keys, contained in the bucket. $s3 = new Zend_Service_Amazon_S3($my_aws_key, $my_aws_secret_key); $list = $s3->getObjectsByBucket("my-own-bucket"); foreach($list as $name) { echo "I have $name key:\n"; $data = $s3->getObject("my-own