reference:plugins:plugin_sdk:batch_mode_functions:filterfunctionfileex

FilterFunctionFileEx(
     const VFSBATCHDATA*:lpBatchData,
     const TCHAR*:lpszFile,
     const WIN32_FIND_DATA*:lpWFD
)
→ UINT

Arguments

lpBatchData

[in] Pointer to the VFSBATCHDATA structure for the batch operation.

lpszFile

[in] The file or folder to test.

lpWFD

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

Return value

One of the following values:

DFFFE_SKIPThe item did not match the filter and should be skipped. (If a directory, do not recurse into it; skip it and its children.)
DFFFE_MATCHThe item matched the filter and should be handled. (If a directory, recurse into it; when deleting, delete if empty after recursion.)
DFFFE_RECURSE_ONLYThe directory itself did not match the filter but you should still recurse into it and check its children.

Description

The FilterFunctionFileEx function tests a file or folder against the filters in place for a batch operation. It is an extended version of FilterFunctionFile that can also indicate that a folder should be recursed into even though the folder itself did not match.

If the function is not available, the helper class returns DFFFE_MATCH.