Feat: adapt minio for S3 policy and fix listing files

This commit is contained in:
HFO4
2020-10-26 15:06:02 +08:00
parent 77394313aa
commit 95f318e069
3 changed files with 5 additions and 6 deletions

View File

@@ -87,10 +87,9 @@ func (handler Driver) List(ctx context.Context, base string, recursive bool) ([]
}
opt := &s3.ListObjectsInput{
Bucket: &handler.Policy.BucketName,
Prefix: &base,
EncodingType: aws.String(""),
MaxKeys: aws.Int64(1000),
Bucket: &handler.Policy.BucketName,
Prefix: &base,
MaxKeys: aws.Int64(1000),
}
// 是否为递归列出