2
2
mirror of https://github.com/octoleo/restic.git synced 2024-11-26 14:56:29 +00:00

walker: recurse into directory based on node type

A broken directory might also not have a subtree.
This commit is contained in:
Michael Eischer 2022-12-28 10:42:21 +01:00
parent 1a9705fc95
commit bc2399fbd9

View File

@ -52,7 +52,7 @@ func FilterTree(ctx context.Context, repo BlobLoadSaver, nodepath string, nodeID
continue continue
} }
if node.Subtree == nil { if node.Type != "dir" {
err = tb.AddNode(node) err = tb.AddNode(node)
if err != nil { if err != nil {
return restic.ID{}, err return restic.ID{}, err