Preserve Creation Date
squarebrakets opened this issue · comments
squarebrakets commented
Would be a nice to have
Hiromu OCHIAI commented
Does it help?
Lines 27 to 29 in 323db16
squarebrakets commented
Sorry for late response. It doesn't work because standard go lib doesn't support changing creation date for some reason. As you already know there is no way to apply Ctime here. But the underlying implementation actually allows Ctime. For this reason Ctime is not preserved.
if err := os.Chtimes(dest, spec.Atime, spec.Mtime); err != nil {
return err
}