(ctx types.TaskCtx, from types.IEntry, to string, override bool)
| 163 | } |
| 164 | |
| 165 | func (sd *ScriptDrive) Move(ctx types.TaskCtx, from types.IEntry, to string, override bool) (types.IEntry, error) { |
| 166 | vm, e := sd.pool.Get(ctx) |
| 167 | if e != nil { |
| 168 | return nil, e |
| 169 | } |
| 170 | defer func() { _ = sd.pool.Return(context.Background(), vm) }() |
| 171 | v, e := sd.call(ctx, vm, "move", s.NewTaskCtx(vm, ctx), s.NewEntry(from), to, override) |
| 172 | if e != nil { |
| 173 | return nil, e |
| 174 | } |
| 175 | return sd.valueToEntry(v), nil |
| 176 | } |
| 177 | |
| 178 | func (sd *ScriptDrive) List(ctx context.Context, path string) ([]types.IEntry, error) { |
| 179 | vm, e := sd.pool.Get(ctx) |
nothing calls this directly
no test coverage detected