Skip to content

Commit 04f5525

Browse files
authored
fix(s3): incorrectly added slash before the Bucket name (#8083 close #8001)
1 parent 28b61a9 commit 04f5525

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

drivers/s3/util.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -199,7 +199,7 @@ func (d *S3) copyFile(ctx context.Context, src string, dst string) error {
199199
dstKey := getKey(dst, false)
200200
input := &s3.CopyObjectInput{
201201
Bucket: &d.Bucket,
202-
CopySource: aws.String(url.PathEscape("/" + d.Bucket + "/" + srcKey)),
202+
CopySource: aws.String(url.PathEscape(d.Bucket + "/" + srcKey)),
203203
Key: &dstKey,
204204
}
205205
_, err := d.client.CopyObject(input)

0 commit comments

Comments
 (0)