Archive.repair

Archive repair(string path, string base, string ext) @safe

Repairs 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

pathdirectory containing the source archive slices
basebase name of the source archive (without slice number/extension)
extslice extension (e.g. "dar")

Returns

A new Archive instance wrapping the repaired catalogue archive.

Throws

DarException if repair fails (missing slices, I/O error, corruption).