mirror of
https://github.com/halejohn/Cloudreve.git
synced 2026-01-26 09:34:57 +08:00
Feat: adapt minio for S3 policy and fix listing files
This commit is contained in:
2
assets
2
assets
Submodule assets updated: f342a2a777...8ec4514b76
@@ -52,7 +52,7 @@ type PolicyOption struct {
|
|||||||
OdRedirect string `json:"od_redirect,omitempty"`
|
OdRedirect string `json:"od_redirect,omitempty"`
|
||||||
|
|
||||||
// Region 区域代码
|
// Region 区域代码
|
||||||
Region string `json:"region"`
|
Region string `json:"region,omitempty"`
|
||||||
}
|
}
|
||||||
|
|
||||||
var thumbSuffix = map[string][]string{
|
var thumbSuffix = map[string][]string{
|
||||||
|
|||||||
@@ -87,10 +87,9 @@ func (handler Driver) List(ctx context.Context, base string, recursive bool) ([]
|
|||||||
}
|
}
|
||||||
|
|
||||||
opt := &s3.ListObjectsInput{
|
opt := &s3.ListObjectsInput{
|
||||||
Bucket: &handler.Policy.BucketName,
|
Bucket: &handler.Policy.BucketName,
|
||||||
Prefix: &base,
|
Prefix: &base,
|
||||||
EncodingType: aws.String(""),
|
MaxKeys: aws.Int64(1000),
|
||||||
MaxKeys: aws.Int64(1000),
|
|
||||||
}
|
}
|
||||||
|
|
||||||
// 是否为递归列出
|
// 是否为递归列出
|
||||||
|
|||||||
Reference in New Issue
Block a user