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

Method Get

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

Source from the content-addressed store, hash-verified

27}
28
29func (d Drive) Get(ctx any, path string) Entry {
30 vm := GetVM(ctx)
31 entry, e := d.d.Get(GetContext(ctx), path)
32 if e != nil {
33 throwForVM(vm, e)
34 }
35 return NewEntry(entry)
36}
37
38func (d Drive) Save(ctx any, path string, size int64, override bool, reader any) Entry {
39 vm := GetVM(ctx)

Callers

nothing calls this directly

Calls 5

GetVMFunction · 0.85
GetContextFunction · 0.85
throwForVMFunction · 0.85
NewEntryFunction · 0.85
GetMethod · 0.65

Tested by

no test coverage detected