(ctx types.TaskCtx, from types.IEntry, to string, override bool)
| 150 | } |
| 151 | |
| 152 | func (sd *ScriptDrive) Copy(ctx types.TaskCtx, from types.IEntry, to string, override bool) (types.IEntry, error) { |
| 153 | vm, e := sd.pool.Get(ctx) |
| 154 | if e != nil { |
| 155 | return nil, e |
| 156 | } |
| 157 | defer func() { _ = sd.pool.Return(context.Background(), vm) }() |
| 158 | v, e := sd.call(ctx, vm, "copy", s.NewTaskCtx(vm, ctx), s.NewEntry(from), to, override) |
| 159 | if e != nil { |
| 160 | return nil, e |
| 161 | } |
| 162 | return sd.valueToEntry(v), nil |
| 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) |
nothing calls this directly
no test coverage detected