Move src to this remote using server-side move operations. This is stored with the remote path given. It returns the destination Object and a possible error. Will only be called if src.Fs().Name() == f.Name() If it isn't possible then return fs.ErrorCantMove
(ctx context.Context, src fs.Object, remote string)
| 675 | // |
| 676 | // If it isn't possible then return fs.ErrorCantMove |
| 677 | func (f *Fs) Move(ctx context.Context, src fs.Object, remote string) (fs.Object, error) { |
| 678 | do := f.Fs.Features().Move |
| 679 | if do == nil { |
| 680 | return nil, fs.ErrorCantMove |
| 681 | } |
| 682 | o, ok := src.(*Object) |
| 683 | if !ok { |
| 684 | return nil, fs.ErrorCantMove |
| 685 | } |
| 686 | oResult, err := do(ctx, o.Object, f.cipher.EncryptFileName(remote)) |
| 687 | if err != nil { |
| 688 | return nil, err |
| 689 | } |
| 690 | return f.newObject(oResult), nil |
| 691 | } |
| 692 | |
| 693 | // DirMove moves src, srcRemote to this remote at dstRemote |
| 694 | // using server-side move operations. |
nothing calls this directly
no test coverage detected