Ftp.AppendFile Method
Namespace: Rebex.Net
Assembly: Rebex.Ftp.dll (version 7.0.9083)
AppendFile(Stream, String)
Appends the content of the data stream to the file on the server.
Declaration
public long AppendFile(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. |
Remarks
Represents FTP APPE command.
AppendFile(String, String)
Appends the content of the local file to the file on the server.
Declaration
public long AppendFile(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. |
Remarks
Represents FTP APPE command.
AppendFile(Stream, String, Int64)
Appends the content of the data stream to the file on the server.
Declaration
public long AppendFile(Stream sourceStream, string remotePath, long length)
Parameters
Type | Name | Description |
---|---|---|
Stream | sourceStream | The source data stream. |
String | remotePath | The path of the remote file. This cannot be a directory. |
Int64 | length | Number of bytes to transfer or -1 to transfer the whole stream. |
Returns
Type | Description |
---|---|
Int64 | Number of bytes transferred. |
Remarks
Represents FTP APPE command.
AppendFile(String, String, Int64, Int64)
Appends the content of the local file to the file on the server.
Declaration
public long AppendFile(string localPath, string remotePath, long localOffset, long length)
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. |
Int64 | localOffset | The starting offset in the local file. |
Int64 | length | Number of bytes to transfer or -1 to transfer the whole stream. |
Returns
Type | Description |
---|---|
Int64 | Number of bytes transferred. |
Remarks
Represents FTP APPE command.