reference:plugins:vfs_plugins:vfs_createdirectory

VFS_CreateDirectory(
     HANDLE:hVFSData,
     LPVFSFUNCDATA:lpFuncData,
     LPTSTR:lpszPath,
     DWORD:dwFlags
)
→ BOOL

Arguments

hVFSData

[in] The handle to the namespace instance data

lpFuncData

[in] unused

lpszPath

[in] Null-terminated string representing the full path of the directory to create

dwFlags

[in] Flags relating to the create directory operation.

VFSCREATEDIRF_COPYThe folder is being created as part of a recursive copy operation
VFSCREATEDIRF_MULTIPLEThe user wants to create multiple folders at once

Return value

The function must return TRUE if the folder was successfully created, or FALSE on failure. You should set an appropriate error code on failure that Opus can retrieve via VFS_GetLastError.

Description

The VFS_CreateDirectory function is called to create a new sub-directory in your plugin's namespace.

If you set the VFSCAPABILITY_MULTICREATEDIR capabilities flag, Opus will allow the user to create multiple folders at once. The VFSCREATEDIRF_MULTIPLE flag in the dwFlags parameter indicates this, and you should treat any commas in the supplied path as separator characters.