reference:plugins:plugin_sdk:batch_mode_functions:filterfunctionfile

FilterFunctionFile(
     LPVOID:lpFuncData,
     LPTSTR:lpszFilePath,
     LPWIN32_FIND_DATA:lpWFD,
     BOOL:fSubFolderFilter
)
→ BOOL

Arguments

lpFuncData

[in] The value of the lpFuncData member of the VFSBATCHDATA structure

lpszFilePath

[in] The full path name (including your namespace path) of the file or folder you wish to test

lpWFD

[in] Pointer to a WIN32_FIND_DATA structure describing the file or folder in question

fSubFolderFilter

[in] Set to TRUE if you are performing sub-folder filtering, or FALSE for normal filtering.

Return value

Returns TRUE if the file or folder matches the filters, or FALSE if it does not. If a file does not match the filters it should be skipped.

Description

The FilterFunctionFile function lets you support Opus's filtering in your plugins when performing batch-mode operations.

You should call this function for each file or folder if the BATCHF_FILTER flag is set in the VFSBATCHDATA flags field. Additionally, for recursive operations, you should call this function with fSubFolderFilter set to TRUE if the BATCHF_FILTER_FOLDERS flag is set. If a folder does not match the sub-folder filter, you should not recurse into it at all, but should skip over the entire folder.