(ctx types.TaskCtx, path string)
| 193 | } |
| 194 | |
| 195 | func (sd *ScriptDrive) Delete(ctx types.TaskCtx, path string) error { |
| 196 | vm, e := sd.pool.Get(ctx) |
| 197 | if e != nil { |
| 198 | return e |
| 199 | } |
| 200 | defer func() { _ = sd.pool.Return(context.Background(), vm) }() |
| 201 | _, e = sd.call(ctx, vm, "delete", s.NewTaskCtx(vm, ctx), path) |
| 202 | return e |
| 203 | } |
| 204 | |
| 205 | func (sd *ScriptDrive) Upload(ctx context.Context, path string, size int64, override bool, config types.SM) (*types.DriveUploadConfig, error) { |
| 206 | vm, e := sd.pool.Get(ctx) |