diffArchives

fnDiffResult diffArchives(const ArchiveHandle a, const ArchiveHandle b) @safe

Compares two archives and returns a simple diff result.

Throws

DarException if comparison fails (invalid handles, I/O error, or

corruption in either archive).

fnDiffResultEx diffArchives(const ArchiveHandle a, const ArchiveHandle b, DiffOptions opts, scope void delegate(DiffKind kind, string path) @safe @nogc onDiff = null) @safe

Diff two archives with options and an optional callback for each difference.

Parameters

optsdiff options controlling what to compare
onDiffoptional delegate invoked for each difference; receives kind and path

Throws

DarException if comparison fails (invalid handles, I/O error, or

corruption in either archive). The optional callback is invoked in a nothrow @nogc context.