This commit is contained in:
jojoliang
2021-05-10 19:33:25 +08:00
parent 8be093dc1b
commit cc8dc719c2
2 changed files with 4 additions and 2 deletions

View File

@@ -59,7 +59,7 @@ func main() {
// 重命名
dest := "test/newfile"
soruceURL := fmt.Sprintf("%s/%s", u.Host, source)
_, _, err := c.Object.Copy(context.Background(), dest, soruceURL, nil)
_, _, err = c.Object.Copy(context.Background(), dest, soruceURL, nil)
log_status(err)
if err == nil {
_, err = c.Object.Delete(context.Background(), source, nil)