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