mirror of
https://github.com/rwinkhart/go-winio.git
synced 2026-09-05 16:47:31 -04:00
Add tar.Headers.Winheaders for Windows metadata
This commit is contained in:
@@ -314,6 +314,11 @@ func mergePAX(hdr *Header, headers map[string]string) error {
|
||||
hdr.Xattrs = make(map[string]string)
|
||||
}
|
||||
hdr.Xattrs[k[len(paxXattr):]] = v
|
||||
} else if strings.HasPrefix(k, paxWindows) {
|
||||
if hdr.Winheaders == nil {
|
||||
hdr.Winheaders = make(map[string]string)
|
||||
}
|
||||
hdr.Winheaders[k[len(paxWindows):]] = v
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user