mirror of
https://github.com/octoleo/restic.git
synced 2025-01-27 00:58:36 +00:00
Display absolute paths when displaying the output of ls and find.
This commit is contained in:
parent
1d64a1dcbb
commit
efb4315a1e
@ -129,7 +129,7 @@ func findInSnapshot(repo *repository.Repository, pat findPattern, id restic.ID)
|
|||||||
return err
|
return err
|
||||||
}
|
}
|
||||||
|
|
||||||
results, err := findInTree(repo, pat, *sn.Tree, "")
|
results, err := findInTree(repo, pat, *sn.Tree, string(filepath.Separator))
|
||||||
if err != nil {
|
if err != nil {
|
||||||
return err
|
return err
|
||||||
}
|
}
|
||||||
|
@ -121,5 +121,5 @@ func runLs(gopts GlobalOptions, args []string) error {
|
|||||||
|
|
||||||
Verbosef("snapshot of %v at %s:\n", sn.Paths, sn.Time)
|
Verbosef("snapshot of %v at %s:\n", sn.Paths, sn.Time)
|
||||||
|
|
||||||
return printTree("", repo, *sn.Tree)
|
return printTree(string(filepath.Separator), repo, *sn.Tree)
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user