mirror of https://github.com/restic/restic.git
ls: Use nodepath for filter
This commit is contained in:
parent
0deb4e5994
commit
7f617cfd7f
|
@ -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 New Issue