mirror of
https://github.com/restic/restic.git
synced 2026-10-30 03:55:42 +00:00
data: split node and snapshot code from restic package
This commit is contained in:
1 parent
c85b157e0e
commit
56ac8360c7
166 files changed
+1170
-1107
No files matched your search
@@ -1,12 +1,12 @@
|
||||
package fs
|
||||
|
||||
import (
|
||||
"github.com/restic/restic/internal/restic"
|
||||
"github.com/restic/restic/internal/data"
|
||||
"golang.org/x/sys/unix"
|
||||
)
|
||||
|
||||
// utimesNano is like syscall.UtimesNano, except that it does not follow symlinks.
|
||||
func utimesNano(path string, atime, mtime int64, _ restic.NodeType) error {
|
||||
func utimesNano(path string, atime, mtime int64, _ data.NodeType) error {
|
||||
times := []unix.Timespec{
|
||||
unix.NsecToTimespec(atime),
|
||||
unix.NsecToTimespec(mtime),
|
||||
|
||||
Reference in new issue
Block a user