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

Method getFilesList

drivers/febbox/util.go:69–78  ·  view source on GitHub ↗
(id string)

Source from the content-addressed store, hash-verified

67}
68
69func (d *FebBox) getFilesList(id string) ([]File, error) {
70 if d.PageSize <= 0 {
71 d.PageSize = 100
72 }
73 res, err := d.listWithLimit(id, d.PageSize)
74 if err != nil {
75 return nil, err
76 }
77 return *res, nil
78}
79
80func (d *FebBox) listWithLimit(dirID string, pageLimit int64) (*[]File, error) {
81 var files []File

Callers 1

ListMethod · 0.95

Calls 1

listWithLimitMethod · 0.95

Tested by

no test coverage detected