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

Function vm_buildEntriesTree

script/call_utils.go:40–49  ·  view source on GitHub ↗

vm_buildEntriesTree: (ctx TaskCtx, entry Entry, byteProgress bool) entryTreeNode

(vm *VM, args Values)

Source from the content-addressed store, hash-verified

38
39// vm_buildEntriesTree: (ctx TaskCtx, entry Entry, byteProgress bool) entryTreeNode
40func vm_buildEntriesTree(vm *VM, args Values) any {
41 ctx := GetTaskCtx(args.Get(0).Raw())
42 entry := GetEntry(args.Get(1).Raw())
43 byteProgress := args.Get(2).Bool()
44 r, e := drive_util.BuildEntriesTree(ctx, entry, byteProgress)
45 if e != nil {
46 vm.ThrowError(e)
47 }
48 return convertEntryTreeNode(r)
49}
50
51// vm_buildEntriesTreeWithPattern: (ctx TaskCtx, root Drive, pattern string, bytesProgress bool) []Entry
52func vm_findEntries(vm *VM, args Values) any {

Callers

nothing calls this directly

Calls 8

BuildEntriesTreeFunction · 0.92
GetTaskCtxFunction · 0.85
GetEntryFunction · 0.85
convertEntryTreeNodeFunction · 0.85
RawMethod · 0.80
ThrowErrorMethod · 0.80
GetMethod · 0.65
BoolMethod · 0.45

Tested by

no test coverage detected