(path string)
| 161 | func (h *fileHandler) Read(path string) ([]byte, error) { return os.ReadFile(h.JoinPath(path)) } |
| 162 | |
| 163 | func (h *fileHandler) JoinPath(path string) string { |
| 164 | return filepath.Join(h.rootDir, h.prefix, path) |
| 165 | } |
| 166 | func (h *fileHandler) Stream(path string) (io.ReadCloser, error) { |
| 167 | return os.Open(h.JoinPath(path)) |
| 168 | } |
no outgoing calls
no test coverage detected