Skip to content

Commit

Permalink
fix: gcp bucket文件夹默认设为private
Browse files Browse the repository at this point in the history
  • Loading branch information
Qu Xuan committed May 21, 2020
1 parent daf9db8 commit ef25bf3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pkg/multicloud/google/s3object.go
Expand Up @@ -124,7 +124,7 @@ func (region *SRegion) ConvertAcl(acls []GCSAcl) cloudprovider.TBucketACLType {

func (o *SObject) GetAcl() cloudprovider.TBucketACLType {
if strings.HasSuffix(o.Name, "/") {
return cloudprovider.ACLUnknown
return cloudprovider.ACLPrivate
}
acls, err := o.bucket.region.GetObjectAcl(o.bucket.Name, o.Name)
if err != nil {
Expand Down

0 comments on commit ef25bf3

Please sign in to comment.