Scp.GetFile Method
Namespace: Rebex.Net
Assembly: Rebex.Sftp.dll (version 7.0.9119)
GetFile(String, String)
Downloads the remote file to the local file, overriding it if it already exists.
Declaration
public long GetFile(string remotePath, string localPath)
Parameters
Type | Name | Description |
---|---|---|
String | remotePath | The path of the remote file. |
String | localPath | The path of the local file. This cannot be a directory. |
Returns
Type | Description |
---|---|
Int64 | Number of bytes transferred. |
GetFile(String, Stream)
Downloads the remote file to the data stream.
Declaration
public long GetFile(string remotePath, Stream outputStream)
Parameters
Type | Name | Description |
---|---|---|
String | remotePath | The path of the remote file. |
Stream | outputStream | The output stream. |
Returns
Type | Description |
---|---|
Int64 | Number of bytes transferred. |