Skip to content

fingerprintsMatch

function fingerprintsMatch(stored: TransferSourceFingerprint, current: TransferSourceFingerprint): boolean;

Defined in: src/transfers/TransferCheckpointStore.ts:190

Compares a stored fingerprint against the current source fingerprint.

A checkpoint is only trustworthy when at least one field is comparable on both sides and every comparable field matches exactly. A source with no comparable metadata never matches - resuming without any change detection risks corrupting the destination.

ParameterTypeDescription
storedTransferSourceFingerprintFingerprint captured when the checkpoint was written.
currentTransferSourceFingerprintFingerprint of the source object right now.

boolean

true when the source is provably unchanged.