Uploads the specified part of the local file to the specified offset of the file on the SFTP server.
Namespace:
Rebex.Net
Assembly:
Rebex.Sftp (in Rebex.Sftp.dll)
Syntax
Visual Basic |
---|
Public Function PutFile ( _ localPath As String, _ remotePath As String, _ localOffset As Long, _ remoteOffset As Long, _ length As Long _ ) As Long |
C# |
---|
public long PutFile( string localPath, string remotePath, long localOffset, long remoteOffset, long length ) |
Parameters
- localPath
- Type: System..::..String
The path of the local file.
- remotePath
- Type: System..::..String
The path of the remote file. This cannot be a directory.
- localOffset
- Type: System..::..Int64
The starting offset in the local file.
- remoteOffset
- Type: System..::..Int64
The starting offset of the remote file.
- length
- Type: System..::..Int64
Number of bytes to transfer or -1 to transfer all data until an end is reached.
Return Value
Number of bytes transferred.Implements
IFtp..::..PutFile(String, String, Int64, Int64, Int64)Remarks
If the remote file does not exist, it is created.