MCPcopy Index your code
hub / github.com/FloatTech/AnimeAPI / RollLocal

Method RollLocal

setu/pool.go:127–133  ·  view source on GitHub ↗

RollLocal ...

(typ string)

Source from the content-addressed store, hash-verified

125
126// RollLocal ...
127func (p *Pool) RollLocal(typ string) (string, error) {
128 d := p.folder + typ
129 if file.IsNotExist(d) {
130 return "", ErrNoSuchType
131 }
132 return p.rollLocal(d)
133}
134
135func (p *Pool) rollLocal(d string) (string, error) {
136 files, err := os.ReadDir(d)

Callers

nothing calls this directly

Calls 1

rollLocalMethod · 0.95

Tested by

no test coverage detected