From ebdd946ac152c53977d5157714d832eb56146d63 Mon Sep 17 00:00:00 2001 From: Michael Eischer Date: Tue, 27 Aug 2024 15:34:53 +0200 Subject: [PATCH] fs: unexport nodeRestoreTimestamps --- internal/fs/node.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/internal/fs/node.go b/internal/fs/node.go index a8aa3c408..280e290c2 100644 --- a/internal/fs/node.go +++ b/internal/fs/node.go @@ -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) if firsterr == nil { firsterr = err @@ -305,7 +305,7 @@ func nodeRestoreMetadata(node *restic.Node, path string, warn func(msg string)) return firsterr } -func NodeRestoreTimestamps(node *restic.Node, path string) error { +func nodeRestoreTimestamps(node *restic.Node, path string) error { var utimes = [...]syscall.Timespec{ syscall.NsecToTimespec(node.AccessTime.UnixNano()), syscall.NsecToTimespec(node.ModTime.UnixNano()),