| 96 | } |
| 97 | |
| 98 | func (sd *ScriptDrive) Meta(ctx context.Context) (types.DriveMeta, error) { |
| 99 | vm, e := sd.pool.Get(ctx) |
| 100 | if e != nil { |
| 101 | return types.DriveMeta{}, e |
| 102 | } |
| 103 | defer func() { _ = sd.pool.Return(context.Background(), vm) }() |
| 104 | v, e := sd.call(ctx, vm, "meta", s.NewContext(vm, ctx)) |
| 105 | r := types.DriveMeta{} |
| 106 | if e != nil { |
| 107 | return r, nil |
| 108 | } |
| 109 | v.ParseInto(&r) |
| 110 | return r, nil |
| 111 | } |
| 112 | |
| 113 | func (sd *ScriptDrive) Get(ctx context.Context, path string) (types.IEntry, error) { |
| 114 | vm, e := sd.pool.Get(ctx) |