Internet Direct (Indy) Version 9.0.2 Beta
TIdFTP.RetrieveCurrentDir
Gets the current directory name on the FTP server.

function RetrieveCurrentDir: string;
Returns
String - Current directory name.

Description
RetrieveCurrentDir is a String function that returns the name of the present working directory, or current directory, on the FTP server.

The return value for RetrieveCurrentDir will contain the current directory name with leading and trailing quote (") characters removed.

Use ChangeDir or ChangeDirUp to select the current directory by path or relative position in the directory hierarchy.