I always thought there was a 1,000 key limit when calling ListObjects in Amazon S3. However, I just made a call and it's pulling 1,080. But even their docs say there is a limit of 1,000.
I tried setting the MaxKeys setting to 1,000 but it still pulls 1,080 results. My code:
$iterator = $s3->getIterator('ListObjects', array(
'Bucket' => 'BUCKETNAME',
'MaxKeys' => 1000
));
It is however pulling folders as keys. But I certainly don't have 80 of them.
Two questions:
- Is my code wrong?
- Has Amazon lifted the 1000 key restriction? Is there a new limit?