VFS_RemoveDirectory(
     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 delete

dwFlags

[in] Currently unused.

Return value

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

Description

The VFS_RemoveDirectory function is called to delete a sub-directory from your plugin's namespace.

Opus may occasionally attempt to delete non-empty directories via this function. If your plugin supports this you should perform the delete as normal and return TRUE. If you don't support deleting non-empty directories you should set the error code to ERROR_DIR_NOT_EMPTY and return FALSE.