-
-
Notifications
You must be signed in to change notification settings - Fork 4
SSH.SFTPStream.Constructor
Andrew Lambert edited this page Nov 26, 2022
·
6 revisions
SSH.SFTPStream.Constructor
Protected Sub Constructor(Session As SSH.SFTPSession, RemoteName As String, Flags As Integer, Mode As Integer, Directory As Boolean = False)
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. |
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.
Wiki home | Project page | Bugs | Become a sponsor
Text and code examples are Copyright ©2018-24 Andrew Lambert, offered under the CC BY-SA 3.0 License.