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

Method Copy

script/object_drive.go:56–63  ·  view source on GitHub ↗
(ctx any, from any, to string, override bool)

Source from the content-addressed store, hash-verified

54}
55
56func (d Drive) Copy(ctx any, from any, to string, override bool) Entry {
57 vm := GetVM(ctx)
58 entry, e := d.d.Copy(GetTaskCtx(ctx), GetEntry(from), to, override)
59 if e != nil {
60 throwForVM(vm, e)
61 }
62 return NewEntry(entry)
63}
64
65func (d Drive) Move(ctx any, from any, to string, override bool) Entry {
66 vm := GetVM(ctx)

Callers

nothing calls this directly

Calls 6

GetVMFunction · 0.85
GetTaskCtxFunction · 0.85
GetEntryFunction · 0.85
throwForVMFunction · 0.85
NewEntryFunction · 0.85
CopyMethod · 0.65

Tested by

no test coverage detected