FVSDK_ERROR_CODE FVSDK_SetCurrentDirectory(FVSDK_Session* pSession, LPCTSTR pszPathName);
Sends the CWD (change working directory) command on the server to change the working directory to the requested directory.
pSession
A pointer to the FVSDK_Session that is to perform the operation.
pszPathName
A NULL terminated path name to use for the new directory.
FVSDK_YES if changing the directory was successful; FVSDK_NO if the directory could not be changed. Error codes can be found in FVSDK_ErrorCodes.h.
// change to the "/pub" directory on the server
if (FVSDK_SetCurrentDirectory(pSession, "/pub") != FVSDK_YES)
AfxMessageBox("Unable to change the current working directory.");