Module pyinotify :: Class ExcludeFilter
[hide private]
[frames] | no frames]

Class ExcludeFilter

source code


ExcludeFilter is an exclusion filter.

Instance Methods [hide private]
 
__init__(self, arg_lst)
x.__init__(...) initializes x; see x.__class__.__doc__ for signature
source code
 
_load_patterns(self, dct) source code
 
_match(self, regex, path) source code
bool
__call__(self, path)
Returns: return True is path has been matched and should be excluded, False otherwise.
source code

Inherited from object: __delattr__, __format__, __getattribute__, __hash__, __new__, __reduce__, __reduce_ex__, __repr__, __setattr__, __sizeof__, __str__, __subclasshook__

Properties [hide private]

Inherited from object: __class__

Method Details [hide private]

__init__(self, arg_lst)
(Constructor)

source code 

x.__init__(...) initializes x; see x.__class__.__doc__ for signature

Parameters:
  • arg_lst (list or dict) - is either a list or dict of patterns: [pattern1, ..., patternn] {'filename1': (list1, listn), ...} where list1 is a list of patterns
Overrides: object.__init__

__call__(self, path)
(Call operator)

source code 
Parameters:
  • path (str) - path to match against regexps.
Returns: bool
return True is path has been matched and should be excluded, False otherwise.