]> Cypherpunks repositories - gostls13.git/commit
archive/tar: add support for atime and ctime to Writer
authorJoe Tsai <joetsai@digital-static.net>
Mon, 14 Aug 2017 22:39:19 +0000 (15:39 -0700)
committerJoe Tsai <thebrokentoaster@gmail.com>
Tue, 15 Aug 2017 03:07:59 +0000 (03:07 +0000)
commit9223adcc2c48f4b7f60ff10001bb35f028e6126a
tree594c7ff8a0f34860d282706dd2dffa0df53c7a19
parent1da0e7e28ed3694d2a50b051ce556d06b90789ef
archive/tar: add support for atime and ctime to Writer

Both the GNU and PAX formats support atime and ctime fields.
The implementation is trivial now that we have:
* support for formatting PAX records for timestamps
* dedicated methods that only handle one format (e.g., GNU)

Fixes #17876

Change-Id: I0c604fce14a47d722098afc966399cca2037395d
Reviewed-on: https://go-review.googlesource.com/55570
Run-TryBot: Joe Tsai <thebrokentoaster@gmail.com>
TryBot-Result: Gobot Gobot <gobot@golang.org>
Reviewed-by: Ian Lance Taylor <iant@golang.org>
src/archive/tar/common.go
src/archive/tar/tar_test.go
src/archive/tar/writer.go