Skip to content

SSH.SFTPStream.Constructor

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

SSH.SFTPStream.Constructor

Method Signatures

 Protected Sub Constructor(Session As SSH.SFTPSession, RemoteName As String, Flags As Integer, Mode As Integer, Directory As Boolean = False)

Parameters

Name Type Comment
Session SSH.SFTPSession An SFTP session.
RemoteName String The remote file to work on.
Flags Integer Indicates what sort of operation will be done.
Mode Integer The Unix-style permissions of the remote file.
Directory Boolean Optional. If True, the RemoteName refers to a directory.

Remarks

Constructs a new instance of SFTPStream for the file or directory indicated by the parameters. The RemoteName is the full remote path of the item. The Flags parameter is any reasonable combination of the LIBSSH2_FXF_* constants, and indicates what operations(s) are to be performed on the item. If the operation will create a remote file or directory then the Mode parameter indicates its initial permissions.

This Constructor cannot be called from outside the SFTPStream class. Use the Get, Put, Append, or ListDirectory methods of the SFTPSession class to create instances of this class.

Clone this wiki locally