RollLocal ...
(typ string)
| 125 | |
| 126 | // RollLocal ... |
| 127 | func (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 | |
| 135 | func (p *Pool) rollLocal(d string) (string, error) { |
| 136 | files, err := os.ReadDir(d) |