Skip to content

SSH.SFTPSession.Append

Andrew Lambert edited this page Nov 26, 2022 · 5 revisions

Method Signature

 Function Append(FileName As String, CreateIfMissing As Boolean = False, Mode As Integer = 0) As SSH.SFTPStream

Parameters

Name Type Comment
FileName String The name of the file on the server to be appended to.
CreateIfMissing Boolean Optional. If True, the file is created if it doesn't already exist.
Mode Integer Optional. The Unix-style permissions to apply to the file if it is created.

Return value

Returns an instance of SFTPStream to which the file data can be appended, or Nil on error. Check SFTPSession.LastError for error details.

Remarks

Initiates an upload operation where data is appended to an existing file. If CreateIfMissing is False and the file doesn't exist then the operation will fail.

Clone this wiki locally