:Restart()
Class
Syntax
:Restart( nOffset, [hSession] ) -> lSuccess
Parameters
|
|
nOffset |
Numeric. The byte offset that the file transfer is to begin from. |
|
|
hSession |
Optional: If hSession is not passed, the value in :Session will be used |
Return
Logical indicating Success.
Returns .T. if the operation succeeds, otherwise returns .F.
To get further error information see :nErr and :cErr
To see the remote server's response, see :GetResultCode() and :GetResultString().
Description
The :Restart() method is used to restart a file transfer from the specified byte offset.
This method should be called before opening the file on the remote server.
Note that not all servers support restarting file transfers, and in this case, the method called to open or create the file will fail with the ERROR_FTP_RESTART error.
See Also
:GetFile(), :OpenFile(), :PutFile()