mirror of
https://github.com/restic/restic.git
synced 2026-11-14 06:44:03 +00:00
Add command 'fsck'
This commit is contained in:
1 parent
b923a2065a
commit
ad8125d83c
3 files changed
+89
No files matched your search
@@ -68,6 +68,8 @@ func LoadSnapshot(repo *Repository, id ID) (*Snapshot, error) {
|
||||
return nil, err
|
||||
}
|
||||
|
||||
// TODO: maybe inject a hashing reader here and test if the given id is correct
|
||||
|
||||
dec := json.NewDecoder(rd)
|
||||
sn := &Snapshot{}
|
||||
err = dec.Decode(sn)
|
||||
|
||||
Reference in new issue
Block a user