s3 一次性10000个
This commit is contained in:
parent
f9256895b7
commit
3d7c88de5f
@ -56,8 +56,9 @@ func (s *S3Adapter) GetFileList(ctx context.Context, dirPath string, relDt time.
|
|||||||
}
|
}
|
||||||
|
|
||||||
listObjectsInput := &s3.ListObjectsV2Input{
|
listObjectsInput := &s3.ListObjectsV2Input{
|
||||||
Bucket: aws.String(s.StorageConfig.S3.Bucket),
|
Bucket: aws.String(s.StorageConfig.S3.Bucket),
|
||||||
Prefix: aws.String(path.Join(s.StorageConfig.S3.Prefix, dirPath)),
|
Prefix: aws.String(path.Join(s.StorageConfig.S3.Prefix, dirPath)),
|
||||||
|
MaxKeys: aws.Int32(1000),
|
||||||
}
|
}
|
||||||
|
|
||||||
client, err := s.getClient()
|
client, err := s.getClient()
|
||||||
|
Loading…
x
Reference in New Issue
Block a user