MCPcopy
hub / github.com/minio/minio-go / decodeS3Name

Function decodeS3Name

api-list.go:1135–1142  ·  view source on GitHub ↗

Decode an S3 object name according to the encoding type

(name, encodingType string)

Source from the content-addressed store, hash-verified

1133
1134// Decode an S3 object name according to the encoding type
1135func decodeS3Name(name, encodingType string) (string, error) {
1136 switch encodingType {
1137 case "url":
1138 return url.QueryUnescape(name)
1139 default:
1140 return name, nil
1141 }
1142}

Callers 4

listObjectsV2QueryMethod · 0.85
listObjectsQueryMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected