methodTstSFTPClient.CmpFile
function CmpFile(const aSource : TStream; const aDestFile: string; const aOffset : Int64; aLength : Integer) : Boolean; overload;
Compares a region (aOffset/aLength) of a local stream against the same region of a remote file via the server's md5-hash-handle extension, returning True when the MD5 hashes match. Used to verify an upload or decide whether a resumed transfer can be skipped.
function CmpFile(const aSourceFile: string; const aDestFile : string; const aOffset : Int64; aLength : Integer) : Boolean; overload;
Compares a region of a local file (by name) against a remote file as above; raises if the server has not advertised the md5-hash-handle extension.