1
0
Fork 0
mirror of https://github.com/restic/restic.git synced 2024-12-25 09:18:55 +00:00

Clarify variable name

This commit is contained in:
Alexander Neumann 2017-03-02 14:52:18 +01:00
parent bf97cc7efa
commit 7c92994f10

View file

@ -116,11 +116,11 @@ func (res *Restorer) restoreNodeTo(node *Node, dir string, dst string, idx *Hard
return nil return nil
} }
// RestoreTo creates the directories and files in the snapshot below dir. // RestoreTo creates the directories and files in the snapshot below dst.
// Before an item is created, res.Filter is called. // Before an item is created, res.Filter is called.
func (res *Restorer) RestoreTo(dir string) error { func (res *Restorer) RestoreTo(dst string) error {
idx := NewHardlinkIndex() idx := NewHardlinkIndex()
return res.restoreTo(dir, string(filepath.Separator), *res.sn.Tree, idx) return res.restoreTo(dst, string(filepath.Separator), *res.sn.Tree, idx)
} }
// Snapshot returns the snapshot this restorer is configured to use. // Snapshot returns the snapshot this restorer is configured to use.