s3: read 1000 items in listings #1653

This fixes directory listings with wasabi which fail if you supply
more than the allowed 1000 items as a parameter.  rclone used to
supply 1024 items which exceeds the spec - this works fine with
s3/ceph/etc but fails with wasabi.
This commit is contained in:
Nick Craig-Wood 2017-09-06 11:13:28 +01:00
parent 58f7b4ed7c
commit 2944f7603d
1 changed files with 1 additions and 1 deletions

View File

@ -220,7 +220,7 @@ func init() {
// Constants
const (
metaMtime = "Mtime" // the meta key to store mtime in - eg X-Amz-Meta-Mtime
listChunkSize = 1024 // number of items to read at once
listChunkSize = 1000 // number of items to read at once
maxRetries = 10 // number of retries to make of operations
maxSizeForCopy = 5 * 1024 * 1024 * 1024 // The maximum size of object we can COPY
)