Archive instance wrapping the repaired catalogue archive.Archive.repair
Archive repair(string path, string base, string ext) @safeRepairs an archive catalogue and returns a new Archive instance.
This static factory uses the low-level repairArchive() to rebuild the archive catalogue when slices are present but the catalogue is missing or corrupted. The repaired archive is written alongside the original, using basename <base>_repaired.
Parameters
path | directory containing the source archive slices |
base | base name of the source archive (without slice number/extension) |
ext | slice extension (e.g. "dar") |
Returns
A new
Throws
DarException if repair fails (missing slices, I/O error, corruption).