Skip to content

SSH.SFTPSession.Get

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

Method Signature

 Function Get(FileName As String) As SSH.SFTPStream
 Function Get(FileName As String, WriteTo As Writeable) As Boolean

Parameters

Get(String)

Name Type Comment
FileName String The name of the file to download from the server.

Get(String, Writeable)

Name Type Comment
FileName String The name of the file to download from the server.
WriteTo Writeable The stream to write downloaded data to.

Return value

Get(String)

Returns an SFTPStream from which the downloaded data can be read, or Nil on error.

Get(String, Writeable)

Returns True if the file was downloaded successfully.

Remarks

Downloads the file from the server using SFTP. Check SFTPSession.LastError for error details.

Clone this wiki locally