Provide operations for watching files and directories. Integrated
dictionary is used to reference watched items.
|
__init__(self,
exclude_filter=<function <lambda> at 0x2acf4efb4d70>)
Initialization: init inotify, init watch manager dictionary. |
source code
|
|
|
__add_watch(self,
path,
mask,
proc_fun,
auto_add)
Add a watch on path, build a Watch object and insert it in the watch
manager dictionary. |
source code
|
|
|
|
dict of {str: int}
|
add_watch(self,
path,
mask,
proc_fun=None,
rec=False,
auto_add=False,
do_glob=False,
quiet=True,
exclude_filter=None)
Add watch(s) on given path(s) with the specified mask and optionnally
with a processing function and recursive flag. |
source code
|
|
list of int
|
__get_sub_rec(self,
lpath)
Get every wd from self._wmd if its path is under the path of one (at
least) of those in lpath. |
source code
|
|
dict of int: bool
|
update_watch(self,
wd,
mask=None,
proc_fun=None,
rec=False,
auto_add=False,
quiet=True)
Update existing watch(s). |
source code
|
|
list of type(param)
|
|
int or None
|
|
string or None
|
get_path(self,
wd)
Returns the path associated to WD, if WD is unknown None is returned. |
source code
|
|
string
|
|
dict of int: bool
|
|
See add_watch().
|
|
Inherited from object :
__delattr__ ,
__format__ ,
__getattribute__ ,
__hash__ ,
__new__ ,
__reduce__ ,
__reduce_ex__ ,
__repr__ ,
__setattr__ ,
__sizeof__ ,
__str__ ,
__subclasshook__
|