Trees | Index | Help |
|
---|
Module pyinotify :: Class WatchManager |
|
object
--+
|
WatchManager
Method Summary | |
---|---|
Initialization: init inotify, init watch manager dictionary. | |
dict of str: int |
Add watch(s) on given path(s) with the specified mask and optionnally with a processing function and recursive flag. |
string or None |
Returns the path associated to WD, if WD doesn't exist None is returned. |
int or None |
Returns the watch descriptor associated to path. |
dict of int: bool |
Removes watch(s). |
dict of int: bool |
Update existing watch(s). |
Add a watch on path, build a Watch object and insert it in the watch manager dictionary. | |
list of type(param) |
Return wrap param. |
list of int |
Get every wd from self._wmd if its path is under the path of one (at least) of those in lpath. |
__glob(self,
path,
do_glob)
| |
string |
Yields each subdirectories of top, doesn't follow symlinks. |
Inherited from object | |
x.__delattr__('name') <==> del x.name | |
x.__getattribute__('name') <==> x.name | |
x.__hash__() <==> hash(x) | |
T.__new__(S, ...) -> a new object with type S, a subtype of T | |
helper for pickle | |
helper for pickle | |
x.__repr__() <==> repr(x) | |
x.__setattr__('name', value) <==> x.name = value | |
x.__str__() <==> str(x) |
Method Details |
---|
__init__(self)
Initialization: init inotify, init watch manager dictionary. Raise
OSError if initialization fails.
|
add_watch(self, path, mask, proc_fun=None, rec=False, auto_add=False, do_glob=False)Add watch(s) on given path(s) with the specified mask and optionnally with a processing function and recursive flag.
|
get_path(self, wd)Returns the path associated to WD, if WD doesn't exist None is returned.
|
get_wd(self, path)Returns the watch descriptor associated to path. This method has an prohibitive cost, always prefer to keep the WD.
|
rm_watch(self, wd, rec=False)Removes watch(s).
|
update_watch(self, wd, mask=None, proc_fun=None, rec=False, auto_add=False)Update existing watch(s). Both the mask and the processing object can be modified.
|
__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. Return the wd value. |
__format_param(self, param)
|
__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. Doesn't follow symlinks.
|
__walk_rec(self, top, rec)Yields each subdirectories of top, doesn't follow symlinks. If rec is false, only yield top.
|
Trees | Index | Help |
|
---|
Generated by Epydoc 2.1 on Sat Feb 17 02:40:18 2007 | http://epydoc.sf.net |