kaliber-scala / play-s3

S3 module for Play
MIT License
119 stars 49 forks source link

Support listing more than 1000 items in a bucket #24

Closed denodaeus closed 10 years ago

denodaeus commented 10 years ago

Amazon only returns 1000 items at a time on a request for ListObject in a bucket, basically supporting pagination of responses.

The changes just keep track of where you are in the list (it's lexicographic order) and gets the entire contents of the bucket. You could also do a check for a truncated on the ListObject ('true'), but that was a bit lower level.

The added test case works for me, but I'm having some problems with access to your bucket so YMMV.