:CloseFile()


Class

     aprFTP()

 

Syntax

     :CloseFile( [hSession] ) -> lSuccess

 

Parameters

 

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 :CloseFile() method flushes the internal client buffers and closes the data socket connection to the remote server.

 

If the file is opened for writing, all buffered data is written to the server before the socket is closed. This may cause the client to block until all of the data can be written. The client application should not perform any other action until the function returns.

 

See Also

:OpenFile()