<< Back


FVSDK_SetCurrentDirectory

Synopsis

FVSDK_ERROR_CODE FVSDK_SetCurrentDirectory(FVSDK_Session* pSession, LPCTSTR pszPathName);

Description

Sends the CWD (change working directory) command on the server to change the working directory to the requested directory.

Parameters

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.

Return Value

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.

Example

// change to the "/pub" directory on the server
if (FVSDK_SetCurrentDirectory(pSession, "/pub") != FVSDK_YES)
    AfxMessageBox("Unable to change the current working directory.");