CFtpConnection::SetCurrentDirectory
Call this member function to change to a different directory on the FTP server.
BOOL SetCurrentDirectory(
LPCTSTR pstrDirName
);
Параметры
- pstrDirName
A pointer to a string containing the name of the directory.
Возвращаемое значение
Nonzero if successful; otherwise 0. If the call fails, the Win32 function GetLastError may be called to determine the cause of the error.
Заметки
The pstrDirName parameter can be either a partially or fully qualified filename relative to the current directory. A backslash (\) or forward slash (/) can be used as the directory separator for either name. SetCurrentDirectory translates the directory name separators to the appropriate characters before they are used.
Use GetCurrentDirectory to determine an FTP server's current working directory. Do not assume that the remote system has connected you to the root directory.
Требования
Header: afxinet.h