methodTstSFTPClient.GetFile
function GetFile(const aRemoteName : string; const aLocalName : string; aCanOverwrite: Boolean = False; aResume : Boolean = False) : Boolean; overload;
Downloads a remote file to a local file path. aCanOverwrite permits replacing an existing local file; aResume continues a partial download by appending (and, when both are set, relies on the server's md5-hash-handle extension to reconcile the overlap). Raises eSFTPFileAlreadyExists if the local file exists and neither flag is given.
function GetFile(const aRemoteName: string; aLocalStrm : TStream; aResume : Boolean = False) : Boolean; overload;
Core download routine: streams a remote file into any TStream from its current position. With aResume it continues sequentially from that position, plain-reading only the remaining bytes. Without aResume, when the stream already holds data past its position, it uses the server's md5-hash-handle extension (when advertised) to skip blocks that already match, transferring only the differing/remaining bytes.