How do you change the modified time for a zip file to time.Now()? When I create a zip file I get a modified time of 30 November 1979, 00:00.
So is there an easy way to set the modified time to now?
How do you change the modified time for a zip file to time.Now()? When I create a zip file I get a modified time of 30 November 1979, 00:00.
So is there an easy way to set the modified time to now?
I found this function which does what I was looking for: func FileInfoHeader(fi os.FileInfo) (*FileHeader, error). This will take an input data file and create a partially filled FileHeader.