archive: add archiveItem struct (MR 22)

This will replace the stringset map
This commit is contained in:
Clayton Craft
2022-09-09 12:07:53 -07:00
parent 8b18e444a3
commit 4f601087e1

View File

@@ -36,6 +36,11 @@ func New() (*Archive, error) {
return archive, nil
}
type archiveItem struct {
sourcePath string
header *cpio.Header
}
func (archive *Archive) Write(path string, mode os.FileMode) error {
if err := archive.writeCpio(); err != nil {
return err