Sidebar

Using Directory Opus
Configuration
Programming
Reference Section
plugins:vfs_plugins:exported_functions_reference:vfs_batchoperation

VFS_BatchOperation(
     HANDLE:hVFSData,
     LPVFSFUNCDATA:lpFuncData,
     LPTSTR:lpszPath,
     LPVFSBATCHDATA:lpBatchData
)
→ UINT

Arguments

hVFSData

[in] The handle to the existing namespace instance

lpFuncData

[in] unused

lpszPath

[in] Null-terminated string representing the path in your plugin's namespace involved in the batch operation

lpBatchData

[in] Pointer to a VFSBATCHDATA structure that defines the operation

Return value

The return value indicates the result of the batch operation. Currently defined return codes are:

VFSBATCHRES_DODEFAULTThe operation cannot be performed in batch mode.
VFSBATCHRES_SKIPSkip the first file in the pszFiles array and call again for the next file
VFSBATCHRES_HANDLEDFile has been handled by the batch operation
VFSBATCHRES_ABORTAbort the function
VFSBATCHRES_COMPLETEOperation has been completed for all files
VFSBATCHRES_CALLFOREACHSet this flag in conjunction with the SKIP or HANDLED return codes to force the VFS_BatchOperation function to be called for each file

Description

The VFS_BatchOperation function is called to initiate a batch-mode file operation involving your plugin's namespace.

As well as returning one of the above codes to indicate the result of a batch operation, you should also fill in the piResults array (supplied in the VFSBATCHDATA structure) with a result code for each of the specified files - either 0 for success or an error code on failure.