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

Method List

script/object_drive.go:74–81  ·  view source on GitHub ↗
(ctx any, path string)

Source from the content-addressed store, hash-verified

72}
73
74func (d Drive) List(ctx any, path string) []Entry {
75 vm := GetVM(ctx)
76 entries, e := d.d.List(GetContext(ctx), path)
77 if e != nil {
78 throwForVM(vm, e)
79 }
80 return utils.ArrayMap(entries, func(t *types.IEntry) Entry { return NewEntry(*t) })
81}
82
83func (d Drive) Delete(ctx any, path string) {
84 vm := GetVM(ctx)

Callers

nothing calls this directly

Calls 6

ArrayMapFunction · 0.92
GetVMFunction · 0.85
GetContextFunction · 0.85
throwForVMFunction · 0.85
NewEntryFunction · 0.85
ListMethod · 0.65

Tested by

no test coverage detected