9 "github.com/pkg/errors"
12 func rewriteMetadata(p string, stat *Stat) error {
13 return chtimes(p, stat.ModTime)
16 func chtimes(path string, un int64) error {
17 mtime := time.Unix(0, un)
18 return os.Chtimes(path, mtime, mtime)
21 // handleTarTypeBlockCharFifo is an OS-specific helper function used by
22 // createTarFile to handle the following types of header: Block; Char; Fifo
23 func handleTarTypeBlockCharFifo(path string, stat *Stat) error {
24 return errors.New("Not implemented on windows")