SftpUpload.this

this(SftpClient client, const(ubyte)[] handle, SftpDataSource source, SftpTransferOptions options = SftpTransferOptions.init)

Constructs an upload starting at offset zero.

Parameters

clientClient used for WRITE requests.
handleHandle opened for writing.
sourceOrdered data producer; zero marks exhaustion.
optionsChunking, 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

clientClient used for WRITE requests.
handleHandle opened for writing.
offsetAbsolute starting write position.
sourceOrdered data producer; zero marks exhaustion.
optionsChunking, request-count, and byte-budget bounds.

Throws

SftpException when the options are inconsistent.