SftpDownload.this

this(SftpClient client, const(ubyte)[] handle, ulong length, SftpDataSink sink, SftpTransferOptions options = SftpTransferOptions.init)

Constructs a download.

Parameters

clientClient used for READ requests.
handleOpen file handle.
lengthNumber of bytes to transfer starting at offset zero; ulong.max streams until the server reports EOF.
sinkOrdered data consumer; may accept partial writes.
optionsChunking, request-count, and byte-budget bounds.

Throws

SftpException when the options are inconsistent.