How do I monitor files in a folder but not its subfolders?

CBFS Filter supports pass-through rules. These rules let you specify masks for which matching files are not handled using other rules (i.e., are excluded from filtering).

So, if you want to monitor "c:\some_path" but not its subfolders, add a regular callback rule for "c:\some_path\*.*", then call the AddPassThroughCallbackRule method and pass "c:\some_path\*\?*" to it. This will exclude all files in the subfolders from filtering.

Ready to get started?

Learn more about Callback Technologies or download a free trial.

Download Now