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 <[email protected]>
  • Loading branch information
767829413 committed Nov 12, 2024
1 parent ab1c2fe commit 5e18bd5
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 5e18bd5

Please sign in to comment.