SftpUpload.this
this
(SftpClient client, const(ubyte)[] handle,
SftpDataSource source,
SftpTransferOptions options = SftpTransferOptions.init)Constructs an upload starting at offset zero.
Parameters
client | Client used for WRITE requests. |
handle | Handle opened for writing. |
source | Ordered data producer; zero marks exhaustion. |
options | Chunking, request-count, and byte-budget bounds. |
Throws
SftpException when the options are inconsistent.
this
(SftpClient client, const(ubyte)[] handle, ulong offset,
SftpDataSource source,
SftpTransferOptions options = SftpTransferOptions.init)Constructs an upload starting at an explicit offset.
Resuming with a nonzero offset never replays earlier bytes: the source must produce exactly the data belonging at that offset and the caller is responsible for the handle's truncation or pre-existing content.
Parameters
client | Client used for WRITE requests. |
handle | Handle opened for writing. |
offset | Absolute starting write position. |
source | Ordered data producer; zero marks exhaustion. |
options | Chunking, request-count, and byte-budget bounds. |
Throws
SftpException when the options are inconsistent.