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:
parent
2aa1e2615b
commit
ebdd946ac1
1 changed files with 2 additions and 2 deletions
|
@ -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()),
|
||||||
|
|
Loading…
Reference in a new issue