mirror of
https://github.com/superseriousbusiness/gotosocial
synced 2025-06-05 21:59:39 +02:00
[chore]: Bump github.com/minio/minio-go/v7 from 7.0.69 to 7.0.70 (#2877)
This commit is contained in:
2
vendor/github.com/minio/minio-go/v7/api-get-object-file.go
generated
vendored
2
vendor/github.com/minio/minio-go/v7/api-get-object-file.go
generated
vendored
@ -69,7 +69,7 @@ func (c *Client) FGetObject(ctx context.Context, bucketName, objectName, filePat
|
||||
}
|
||||
|
||||
// Write to a temporary file "fileName.part.minio" before saving.
|
||||
filePartPath := filePath + objectStat.ETag + ".part.minio"
|
||||
filePartPath := filePath + sum256Hex([]byte(objectStat.ETag)) + ".part.minio"
|
||||
|
||||
// If exists, open in append mode. If not create it as a part file.
|
||||
filePart, err := os.OpenFile(filePartPath, os.O_CREATE|os.O_APPEND|os.O_WRONLY, 0o600)
|
||||
|
Reference in New Issue
Block a user