:GetBytesCopied()


Class

     aprFTP()

 

Syntax

     :GetBytesCopied( [hSession] ) -> nBytes

 

Parameters

 

hSession

Optional: If hSession is not passed, the value in :Session will be used

 

Return

If the method succeeds, the return value is the number of bytes copied.

A value of zero indicates that no file transfers have taken place.

A value of -1 indicates that an error occurred.

 

To get further error information see :nErr and :cErr

To see the remote server's response, see :GetResultCode() and :GetResultString().

 

Description

The :GetBytesCopied() method returns the number of bytes that have been copied between the local client and the remote server during the current or previous file transfer.

 

See Also

:GetFile(), :GetTransferStatus(), :GetTransferTime(), :OpenFile(), :PutFile()