NewArchiver creates a new archiver
(basePath string, writer *tar.Writer, ignoreMatcher ignoreparser.IgnoreParser)
| 197 | |
| 198 | // NewArchiver creates a new archiver |
| 199 | func NewArchiver(basePath string, writer *tar.Writer, ignoreMatcher ignoreparser.IgnoreParser) *Archiver { |
| 200 | return &Archiver{ |
| 201 | basePath: basePath, |
| 202 | |
| 203 | ignoreMatcher: ignoreMatcher, |
| 204 | writer: writer, |
| 205 | writtenFiles: make(map[string]*FileInformation), |
| 206 | } |
| 207 | } |
| 208 | |
| 209 | // WrittenFiles returns the written files by the archiver |
| 210 | func (a *Archiver) WrittenFiles() map[string]*FileInformation { |