Join GitHub today
GitHub is home to over 50 million developers working together to host and review code, manage projects, and build software together.Sign up
GitHub is where the world builds software
Millions of developers and companies build, ship, and maintain their software on GitHub — the largest and most advanced development platform in the world.
archive/zip: Header<->os.FileInfo functions #2186
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.