forked from TrueCloudLab/restic
ls: Use nodepath for filter
This commit is contained in:
parent
0deb4e5994
commit
7f617cfd7f
1 changed files with 1 additions and 1 deletions
|
@ -106,7 +106,7 @@ func runLs(opts LsOptions, gopts GlobalOptions, args []string) error {
|
|||
// are not in matching trees or will not lead us to matching trees
|
||||
var walk bool
|
||||
for _, dir := range dirs {
|
||||
approachingMatchingTree := fs.HasPathPrefix(nodeDir, dir)
|
||||
approachingMatchingTree := fs.HasPathPrefix(nodepath, dir)
|
||||
inMatchingTree := fs.HasPathPrefix(dir, nodepath)
|
||||
|
||||
// this condition is complex, but it basically requires that we
|
||||
|
|
Loading…
Reference in a new issue