| 22 | } |
| 23 | |
| 24 | type TarCollector struct { |
| 25 | TarWriter *tar.Writer |
| 26 | UID int |
| 27 | GID int |
| 28 | DstDir string |
| 29 | } |
| 30 | |
| 31 | func (tc TarCollector) WriteFile(fpath string, fi fs.FileInfo, linkName string, f io.Reader) error { |
| 32 | // create a new dir/file header |
nothing calls this directly
no outgoing calls
no test coverage detected