(ctx context.Context, w io.Writer, f fs.File)
| 129 | } |
| 130 | |
| 131 | func writeFile(ctx context.Context, w io.Writer, f fs.File) error { |
| 132 | r, err := f.Open(ctx) |
| 133 | if err != nil { |
| 134 | return err |
| 135 | } |
| 136 | defer r.Close() //nolint:errcheck |
| 137 | |
| 138 | return iocopy.JustCopy(w, r) |
| 139 | } |