Purpose
Gets the name of the current directory on the FTP server with the given CFtpConnection handle.
Syntax
MIGetCurrentFtpDirectory( Byval hConnection As CFtpConnection,
pDirName As String, pLen As Integer As SmallInt
hConnection is a CFtpConnection handle.
pDirName is a reference to a string that receives the name of the directory.
pLen is a reference to an integer that contains the size of the buffer referenced by pDirName as input; the number of characters stored to pDirName as output.
Return Value
Nonzero if successful; otherwise 0. To determine the cause of the failure, call the MIGetErrorMessage() function.
Description
The parameters pDirName can be either fully qualified, or partially qualified, file names relative to the current directory. A backslash (\) or forward slash (/) can be used as the directory separator for either name. MIGetCurrentFtpDirectory() translates the directory name separators to the appropriate characters before they are used.