SSH.SCPStream.Constructor - charonn0/RB-libssh2 GitHub Wiki
Method Signatures
Sub Constructor(Session As SSH.Session, Path As String)
Sub Constructor(Session As SSH.Session, Path As String, Mode As Integer, Length As UInt32, ModTime As Integer, AccessTime As Integer)
Parameters
Constructor(SSH.Session, String)
| Name |
Type |
Comment |
Session |
Session |
An active SSH session to use. |
Path |
String |
The full remote path of the file being downloaded. Must not contain null bytes. |
Constructor(SSH.Session, String, Integer, UInt64, Integer, Integer)
| Name |
Type |
Comment |
Session |
Session |
An active SSH session to use. |
Path |
String |
The full remote path to save the upload to. Must not contain null bytes. |
Mode |
Integer |
The Unix-style permissions of the remote file. |
Length |
UInt64 |
The total size in bytes of the file being uploaded. |
ModTime |
Integer |
The last modified time of the file, or zero. |
AccessTime |
Integer |
The last accessed time of the file, or zero. |
Remarks
Creates a new channel over the session for uploading or downloading over SCP. Perform the upload/download by writing/reading to this object. Make sure to call Close when finished.