:ChangeDirectoryUp()


Class

     aprFTP()

 

Syntax

     :ChangeDirectoryUp( [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 :ChangeDirectoryUp() method changes directory to the parent of the current working directory.

 

This method sends the CDUP command to the remote server. This command is a special case of the CWD command, and is included to simplify transferring between directory trees on those operating systems which have different syntaxes for naming the parent directory. The current user must have the appropriate permission to access the specified directory.

 

See Also

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