Fix timestamps

This commit is contained in:
Alexander Neumann 2018-08-23 22:22:34 +02:00
parent 7e28bf7e97
commit 8c91c51d1b

View file

@ -104,10 +104,13 @@ func runRecover(gopts GlobalOptions) error {
for id := range roots {
var subtreeID = id
node := restic.Node{
Type: "dir",
Name: id.Str(),
Mode: 0755,
Subtree: &subtreeID,
Type: "dir",
Name: id.Str(),
Mode: 0755,
Subtree: &subtreeID,
AccessTime: time.Now(),
ModTime: time.Now(),
ChangeTime: time.Now(),
}
tree.Insert(&node)
}