TestResult with files checked and error count.testArchiveWithStats
Tests archive integrity with full operation statistics.
This is an enhanced version of testArchive that returns both the basic test result and detailed operation statistics.
Parameters
h | archive handle |
stats | output parameter to receive operation statistics |
Returns
Throws
DarException if testing fails (invalid handle, I/O error, corruption).
Example:
auto ro = ReadOptions.create();
auto h = openArchiveRead("/backups", "mybackup", "dar", ro);
OperationStats stats;
auto result = testArchiveWithStats(h, stats);
writefln("Files checked: %d", result.filesChecked);
writefln("Errors: %d", result.errors);
writefln("Bytes verified: %d", stats.byteAmount);