forked from TrueCloudLab/restic
walker: recurse into directory based on node type
A broken directory might also not have a subtree.
This commit is contained in:
parent
1a9705fc95
commit
bc2399fbd9
1 changed files with 1 additions and 1 deletions
|
@ -52,7 +52,7 @@ func FilterTree(ctx context.Context, repo BlobLoadSaver, nodepath string, nodeID
|
|||
continue
|
||||
}
|
||||
|
||||
if node.Subtree == nil {
|
||||
if node.Type != "dir" {
|
||||
err = tb.AddNode(node)
|
||||
if err != nil {
|
||||
return restic.ID{}, err
|
||||
|
|
Loading…
Reference in a new issue