<< Back


FVSDK_CreateDirectory

Synopsis

FVSDK_ERROR_CODE FVSDK_CreateDirectory(FVSDK_Session* pSession, LPCTSTR pszPathName);

Description

Creates the directory specified by pszPathName. pszPathName should be the full path to the directory to be created.

Parameters

pSession

A pointer to the FVSDK_Session that is to perform the operation.

pszPathName

The full path name to the directory to be created.

Return Value

FVSDK_YES if the directory was successful created; FVSDK_NO if the directory could not be created. Error codes can be found in FVSDK_ErrorCodes.h.

Example

// create the directory "/pub/test"
if (FVSDK_CreateDirectory(pSession, "/pub/test") != FVSDK_YES)
    AfxMessageBox("Unable to create the new directory.");