(ctx context.Context, srcObj, dstDir model.Obj)
| 163 | } |
| 164 | |
| 165 | func (d *CloudreveV4) Move(ctx context.Context, srcObj, dstDir model.Obj) error { |
| 166 | return d.request(http.MethodPost, "/file/move", func(req *resty.Request) { |
| 167 | req.SetBody(base.Json{ |
| 168 | "uris": []string{srcObj.GetPath()}, |
| 169 | "dst": dstDir.GetPath(), |
| 170 | "copy": false, |
| 171 | }) |
| 172 | }, nil) |
| 173 | } |
| 174 | |
| 175 | func (d *CloudreveV4) Rename(ctx context.Context, srcObj model.Obj, newName string) error { |
| 176 | return d.request(http.MethodPost, "/file/create", func(req *resty.Request) { |