:ChangeDirectory()


Class

     aprFTP()

 

Syntax

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

 

Parameters

 

cDir

Directory to change to, on the remote server.

The file pathing and name conventions must be that of the remote host.

 

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 :ChangeDirectory() method changes the current remote working directory for the client session.

 

This method uses the CWD command to change the current working directory.

The user must have the appropriate permission to access the specified directory.

 

See Also

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