MCPcopy Create free account
hub / github.com/devld/go-drive / Delete

Method Delete

drive/script/index.go:195–203  ·  view source on GitHub ↗
(ctx types.TaskCtx, path string)

Source from the content-addressed store, hash-verified

193}
194
195func (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
205func (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)

Callers

nothing calls this directly

Calls 3

callMethod · 0.95
ReturnMethod · 0.80
GetMethod · 0.65

Tested by

no test coverage detected