mirror of
https://github.com/restic/restic.git
synced 2026-11-06 07:19:21 +00:00
Introduce LoadTreeBlob and LoadDataBlob
This commit is contained in:
1 parent
573410afab
commit
84f95a09d7
14 files changed
+67
-32
No files matched your search
@@ -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
|
||||
}
|
||||
|
||||
@@ -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
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user