1
0
Fork 0
mirror of https://github.com/restic/restic.git synced 2024-12-22 15:57:07 +00:00

fs: unexport nodeRestoreTimestamps

This commit is contained in:
Michael Eischer 2024-08-27 15:34:53 +02:00
parent 2aa1e2615b
commit ebdd946ac1

View file

@ -284,7 +284,7 @@ func nodeRestoreMetadata(node *restic.Node, path string, warn func(msg string))
} }
} }
if err := NodeRestoreTimestamps(node, path); err != nil { if err := nodeRestoreTimestamps(node, path); err != nil {
debug.Log("error restoring timestamps for %v: %v", path, err) debug.Log("error restoring timestamps for %v: %v", path, err)
if firsterr == nil { if firsterr == nil {
firsterr = err firsterr = err
@ -305,7 +305,7 @@ func nodeRestoreMetadata(node *restic.Node, path string, warn func(msg string))
return firsterr return firsterr
} }
func NodeRestoreTimestamps(node *restic.Node, path string) error { func nodeRestoreTimestamps(node *restic.Node, path string) error {
var utimes = [...]syscall.Timespec{ var utimes = [...]syscall.Timespec{
syscall.NsecToTimespec(node.AccessTime.UnixNano()), syscall.NsecToTimespec(node.AccessTime.UnixNano()),
syscall.NsecToTimespec(node.ModTime.UnixNano()), syscall.NsecToTimespec(node.ModTime.UnixNano()),