We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 18e8073 commit e44abd3Copy full SHA for e44abd3
api-get-object-file.go
@@ -69,7 +69,7 @@ func (c *Client) FGetObject(ctx context.Context, bucketName, objectName, filePat
69
}
70
71
// Write to a temporary file "fileName.part.minio" before saving.
72
- filePartPath := filePath + objectStat.ETag + ".part.minio"
+ filePartPath := filePath + sum256Hex([]byte(objectStat.ETag)) + ".part.minio"
73
74
// If exists, open in append mode. If not create it as a part file.
75
filePart, err := os.OpenFile(filePartPath, os.O_CREATE|os.O_APPEND|os.O_WRONLY, 0o600)
0 commit comments