:CloseDirectory()


Class

     aprFTP()

 

Syntax

     :CloseDirectory( [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 :CloseDirectory() method closes the data socket connection to the remote server.

 

This method must be called after all of the file information from the remote host has been returned. Because directory information

is returned on the data channel, no file transfers can take place while a directory is being read.

 

See Also

:ChangeDirectory(), :GetDirectoryFormat(), :GetFileStatus(), :GetFirstFile(), :GetNextFile(), :OpenDirectory(), :SetDirectoryFormat()