journeymidnight / yig

An open source object storage server with Amazon S3 compatible API
Apache License 2.0
361 stars 86 forks source link

Add prefix constrain for list bucket objects #291

Closed cannium closed 4 years ago

cannium commented 4 years ago

e.g. for a bucket:

/a/1
/a/2
/a/3
...
/a/100
/b/1
/b/2
/b/3
...
/b/100
/b/101
/b/102
...
/b/999
/b/1000
/c/1
/c/2
/c/3
...
/c/999
/c/1000

When listing objects with prefix = "/a" and maxKeys = 1000, current implementation would read the WHOLE bucket.