mirror of
https://github.com/restic/restic.git
synced 2025-12-03 20:51:47 +00:00
Test and document Restorer.VerifyFiles
This commit is contained in:
committed by
Michael Eischer
parent
ef5672a902
commit
973fa921cb
@@ -310,7 +310,10 @@ func (res *Restorer) Snapshot() *restic.Snapshot {
|
||||
return res.sn
|
||||
}
|
||||
|
||||
// VerifyFiles reads all snapshot files and verifies their contents
|
||||
// VerifyFiles checks whether all regular files in the snapshot res.sn
|
||||
// have been successfully written to dst. It stops when it encounters an
|
||||
// error. It returns that error and the number of files it has checked,
|
||||
// including the file(s) that caused errors.
|
||||
func (res *Restorer) VerifyFiles(ctx context.Context, dst string) (int, error) {
|
||||
// TODO multithreaded?
|
||||
|
||||
|
||||
Reference in New Issue
Block a user