You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The zip package has a FileHeader struct that uses the fields required by zip files.
Unfortunately these fields do not map nicely to os.FileInfo fields.
I think it would be helpful to provide conversion functions:
zip.HeaderForInfo(*os.FileInfo) *zip.FileHeader
zip.InfoForHeader(*zip.FileHeader) *.os.FileInfo
This would be particularly convenient when it comes to date/time and permissions
handling.
Similar functions would also be helpful (but not as necesary) in the tar package.