Vinelab / cdn

CDN Assets Manager Package for Laravel.
MIT License
214 stars 71 forks source link

Make sure that all the objects are retrieved. The listObjects functio… #120

Open AdrianHL opened 7 years ago

AdrianHL commented 7 years ago

Make sure that all the objects are retrieved. The listObjects function is limited to 1000 objects so if the bucket contains more than those objects then some of them will not be retrieved when using the listObjects function. An iterator is used instead as suggested in the AmazonS3 developer guide: http://docs.aws.amazon.com/AmazonS3/latest/dev/ListingObjectKeysUsingPHP.html