Skip to content

Commit

Permalink
feat: CopyObject md demo update
Browse files Browse the repository at this point in the history
Signed-off-by: Fang Yuan <wojiushifangyuanlove@gmail.com>
  • Loading branch information
767829413 committed Nov 27, 2024
1 parent 3af356c commit e5e8d5b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions docs/API.md
Original file line number Diff line number Diff line change
Expand Up @@ -667,7 +667,7 @@ dstOpts := minio.CopyDestOptions{
}

// Copy object call
uploadInfo, err := minioClient.CopyObject(context.Background(), dst, src)
uploadInfo, err := minioClient.CopyObject(context.Background(), dstOpts, srcOpts)
if err != nil {
fmt.Println(err)
return
Expand Down Expand Up @@ -703,7 +703,7 @@ dstOpts := minio.CopyDestOptions{
}

// Copy object call
_, err = minioClient.CopyObject(context.Background(), dst, src)
_, err = minioClient.CopyObject(context.Background(), dstOpts, srcOpts)
if err != nil {
fmt.Println(err)
return
Expand Down

0 comments on commit e5e8d5b

Please sign in to comment.