From 714ac4546a1378fec6fbec94096c6ec315214081 Mon Sep 17 00:00:00 2001 From: Stefan Majewsky Date: Wed, 2 May 2018 22:20:54 +0200 Subject: remove Object.MoveTo It's trivially replicable by clients, and has an ugly API that I don't want to commit on at this point. --- object.go | 12 ------------ 1 file changed, 12 deletions(-) (limited to 'object.go') diff --git a/object.go b/object.go index cd5c1c9..a7b19df 100644 --- a/object.go +++ b/object.go @@ -458,15 +458,3 @@ func (o *Object) CopyTo(target *Object, opts *RequestOptions) error { } return err } - -//MoveTo moves the object on the server side, using a COPY request followed by -//a DELETE request on the source object. -// -//A successful move implies Invalidate() on both the source and target side. -func (o *Object) MoveTo(target *Object, copyOpts *RequestOptions, deleteOpts *RequestOptions) error { - err := o.CopyTo(target, copyOpts) - if err != nil { - return err - } - return o.Delete(nil, deleteOpts) -} -- cgit v1.2.3