ls: Use walker for ls

This commit is contained in:
Alexander Neumann
2018-06-09 23:31:31 +02:00
parent 251335f124
commit 8f26fe271c
2 changed files with 17 additions and 23 deletions

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
}