ls: Use walker for ls

This commit is contained in:
Alexander Neumann committed 2018-06-09 23:35:20 +02:00
1 parent 251335f124
commit 8f26fe271c
2 files changed
+17 -23

No files matched your search

+4
View File
@@ -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
}