MCPcopy Create free account
hub / github.com/OpenListTeam/OpenList / listRoot

Method listRoot

drivers/strm/util.go:17–29  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

15)
16
17func (d *Strm) listRoot() []model.Obj {
18 var objs []model.Obj
19 for k := range d.pathMap {
20 obj := model.Object{
21 Path: "/" + k,
22 Name: k,
23 IsFolder: true,
24 Modified: d.Modified,
25 }
26 objs = append(objs, &obj)
27 }
28 return objs
29}
30
31// do others that not defined in Driver interface
32func getPair(path string) (string, string) {

Callers 1

ListMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected