mirror of
https://github.com/restic/restic.git
synced 2026-10-13 13:37:12 +00:00
ls: Use walker for ls
This commit is contained in:
1 parent
251335f124
commit
8f26fe271c
2 files changed
+17
-23
No files matched your search
@@ -49,6 +49,10 @@ func Walk(ctx context.Context, repo TreeLoader, root restic.ID, ignoreTrees rest
|
||||
return err
|
||||
}
|
||||
|
||||
if ignoreTrees == nil {
|
||||
ignoreTrees = restic.NewIDSet()
|
||||
}
|
||||
|
||||
_, err = walk(ctx, repo, "/", tree, ignoreTrees, walkFn)
|
||||
return err
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user