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

Method MakeDir

drive/script/index.go:139–150  ·  view source on GitHub ↗
(ctx context.Context, path string)

Source from the content-addressed store, hash-verified

137}
138
139func (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
152func (sd *ScriptDrive) Copy(ctx types.TaskCtx, from types.IEntry, to string, override bool) (types.IEntry, error) {
153 vm, e := sd.pool.Get(ctx)

Callers

nothing calls this directly

Calls 4

callMethod · 0.95
valueToEntryMethod · 0.95
ReturnMethod · 0.80
GetMethod · 0.65

Tested by

no test coverage detected