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). |
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.
|
Trees | Index | Help |
|
---|
Generated by Epydoc 2.1 on Tue Jul 10 21:40:43 2007 | http://epydoc.sf.net |