GetDirectory Method  
 

Return the current working directory on the server.

Syntax

object.GetDirectory( RemotePath )

Parameters

RemotePath
A string variable which will contain the current working directory when the method returns. This parameter must be passed by reference.

Return Value

A value of zero is returned if the operation was successful, otherwise a non-zero error code is returned which indicates the cause of the failure.

Remarks

The GetDirectory method sends the PWD command to the server to get the current working directory.

See Also

ChangeDirectory, CloseDirectory Method, OpenDirectory Method, ReadDirectory Method