Introduce LoadTreeBlob and LoadDataBlob

This commit is contained in:
Alexander Neumann
2016-09-03 11:22:01 +02:00
parent 573410afab
commit 84f95a09d7
14 changed files with 67 additions and 32 deletions

View File

@@ -61,7 +61,7 @@ func parseTime(str string) (time.Time, error) {
func (c CmdFind) findInTree(repo *repository.Repository, id restic.ID, path string) ([]findResult, error) {
debug.Log("restic.find", "checking tree %v\n", id)
tree, err := restic.LoadTree(repo, id)
tree, err := repo.LoadTree(id)
if err != nil {
return nil, err
}

View File

@@ -47,7 +47,7 @@ func (cmd CmdLs) printNode(prefix string, n *restic.Node) string {
}
func (cmd CmdLs) printTree(prefix string, repo *repository.Repository, id restic.ID) error {
tree, err := restic.LoadTree(repo, id)
tree, err := repo.LoadTree(id)
if err != nil {
return err
}