mirror of
https://github.com/AlistGo/alist.git
synced 2025-04-22 21:04:07 +08:00
This commit is contained in:
parent
267120a8c8
commit
99f39410f2
@ -4,6 +4,7 @@ import (
|
||||
"context"
|
||||
"errors"
|
||||
"net/http"
|
||||
"net/url"
|
||||
"path"
|
||||
"strings"
|
||||
|
||||
@ -198,7 +199,7 @@ func (d *S3) copyFile(ctx context.Context, src string, dst string) error {
|
||||
dstKey := getKey(dst, false)
|
||||
input := &s3.CopyObjectInput{
|
||||
Bucket: &d.Bucket,
|
||||
CopySource: aws.String("/" + d.Bucket + "/" + srcKey),
|
||||
CopySource: aws.String(url.PathEscape("/" + d.Bucket + "/" + srcKey)),
|
||||
Key: &dstKey,
|
||||
}
|
||||
_, err := d.client.CopyObject(input)
|
||||
|
Loading…
x
Reference in New Issue
Block a user