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

Method Move

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

Source from the content-addressed store, hash-verified

63}
64
65func (d Drive) Move(ctx any, from any, to string, override bool) Entry {
66 vm := GetVM(ctx)
67 entry, e := d.d.Move(GetTaskCtx(ctx), GetEntry(from), to, override)
68 if e != nil {
69 throwForVM(vm, e)
70 }
71 return NewEntry(entry)
72}
73
74func (d Drive) List(ctx any, path string) []Entry {
75 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
MoveMethod · 0.65

Tested by

no test coverage detected