:OpenDirectory()


Class

     aprFTP()

 

Syntax

     :OpenDirectory( [cDir], [hSession] ) -> lSuccess

 

Parameters

 

cDir

Directory to switch to on the remote server. If not passed, the current directory will be opened.

 

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

 

Description

The :OpenDirectory() method opens the specified directory for reading.

The list of files in the directory can be read using the :GetFirstFile() and :GetNextFile() methods.

 

See Also

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