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.

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 returns the current working directory on the server. The method sends the PWD command to the server.

See Also

ChangeDirectory, CloseDirectory Method, OpenDirectory Method, ReadDirectory Method