:GetDirectory()


Class

     aprFTP()

 

Syntax

     :GetDirectory( [hSession] ) -> cCurrentDirectory

 

Parameters

 

hSession

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

 

Return

Returns the current working directory on the remote server.

If an error occurred, the return value is an empty string.

 

To get further error information see :nErr and :cErr

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

 

Description

The :GetDirectory() method returns the current working directory on the remote server.

This function sends the CWD command to the remote server.

  

See Also

:ChangeDirectory(), :CreateDirectory(), :RemoveDirectory()