SftpDownload.this
this
(SftpClient client, const(ubyte)[] handle, ulong length,
SftpDataSink sink, SftpTransferOptions options = SftpTransferOptions.init)Constructs a download.
Parameters
client | Client used for READ requests. |
handle | Open file handle. |
length | Number of bytes to transfer starting at offset zero; ulong.max streams until the server reports EOF. |
sink | Ordered data consumer; may accept partial writes. |
options | Chunking, request-count, and byte-budget bounds. |
Throws
SftpException when the options are inconsistent.