(ctx context.Context, srcObj, dstDir model.Obj)
| 78 | } |
| 79 | |
| 80 | func (d *FTPS) Move(ctx context.Context, srcObj, dstDir model.Obj) error { |
| 81 | if err := d.login(); err != nil { |
| 82 | return err |
| 83 | } |
| 84 | return d.conn.Rename( |
| 85 | encode(srcObj.GetPath(), d.Encoding), |
| 86 | encode(stdpath.Join(dstDir.GetPath(), srcObj.GetName()), d.Encoding), |
| 87 | ) |
| 88 | } |
| 89 | |
| 90 | func (d *FTPS) Rename(ctx context.Context, srcObj model.Obj, newName string) error { |
| 91 | if err := d.login(); err != nil { |