(ctx context.Context, path string)
| 137 | } |
| 138 | |
| 139 | func (sd *ScriptDrive) MakeDir(ctx context.Context, path string) (types.IEntry, error) { |
| 140 | vm, e := sd.pool.Get(ctx) |
| 141 | if e != nil { |
| 142 | return nil, e |
| 143 | } |
| 144 | defer func() { _ = sd.pool.Return(context.Background(), vm) }() |
| 145 | v, e := sd.call(ctx, vm, "makeDir", s.NewContext(vm, ctx), path) |
| 146 | if e != nil { |
| 147 | return nil, e |
| 148 | } |
| 149 | return sd.valueToEntry(v), nil |
| 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) |
nothing calls this directly
no test coverage detected