Archive.diff

DiffResult diff(Archive other) @safe

Compares this archive with another archive.

Returns a DiffResult indicating whether the archives differ and how many files were compared. This is a convenience over the low-level diffArchives() free function.

Parameters

otherthe archive to compare against

Returns

DiffResult with the fields:
  • different — number of detected differences (>0 means archives differ)
  • filesCompared — number of entries compared

Throws

DarException if comparison fails (invalid handles, I/O errors).