CBFS Filter 2020 Python Edition

Questions / Feedback?

is_file_filtered Method

Checks whether a particular file or directory is covered by any filter rules.

Syntax

def is_file_filtered(file_name: str) -> bool: ...

Remarks

This method checks whether the file or directory specified by FileName is covered by any of the standard filter rules active currently (i.e., whether the class would fire its events for one or more kinds of filesystem operations performed on it). If the specified file or directory matches any of the active standard filter rules, this method returns True; otherwise, it returns False.

Applications should use this method anytime they want to create/open some file or directory from within an event handler. If this method returns True, then the file or directory must be created/opened using the class's create_file_direct method rather than the Windows API's CreateFile function, since the latter could trigger recursion and cause a system deadlock.

Copyright (c) 2022 Callback Technologies, Inc. - All rights reserved.
CBFS Filter 2020 Python Edition - Version 20.0 [Build 8317]