Trees | Index | Help |
|
---|
Module pyinotify :: Class SimpleINotify |
|
object
--+
|
SimpleINotify
ThreadedINotify
Method Summary | |
---|---|
initialization. | |
dict of str: int |
Add watch(es) on given path(s) with the specified mask and optionnally with a processing function. |
Close the inotify's instance (close its file descriptor). | |
Check for inotify events | |
string or None |
Returns the path associated to WD, if WD doesn't exist or is inactive None is returned. |
int or None |
Returns the watch descriptor associated to path, if path couldn't be retrieved or is inactive None is returned. |
Process events from queue by calling their associated proccessing function (or functor). | |
Read events from device and enqueue them. | |
dict of int: bool |
Removes watch(es). |
dict of int: bool |
Update existing watch(es). |
add a watch on path, stores the wd and the processing function, then returns the wd. | |
list of type(param) |
Return wrap param. |
list of string or list of int |
Get every wd from self._wdd if its path is under the path of one (at least) of those in l. |
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.
|
add_watch(self, path, mask, proc_fun=<pyinotify.ProcessEvent object at 0x40202fac>, rec=False)Add watch(es) on given path(s) with the specified mask and optionnally with a processing function.
|
close(self)Close the inotify's instance (close its file descriptor). It destroys all existing watches, pending events,... |
event_check(self, timeout=4)Check for inotify events
|
get_path(self, wd)Returns the path associated to WD, if WD doesn't exist or is inactive None is returned.
|
get_wd(self, path)Returns the watch descriptor associated to path, if path couldn't be retrieved or is inactive None is returned.
|
process_events(self)Process events from queue by calling their associated proccessing function (or functor). |
read_events(self)Read events from device and enqueue them. |
rm_watch(self, wd, rec=False)Removes watch(es).
|
update_watch(self, wd, mask=None, proc_fun=None, rec=False)Update existing watch(es). Both the mask and the processing function can be modified.
|
__add_watch(self, path, mask, proc_fun)add a watch on path, stores the wd and the processing function, then returns the wd. |
__format_param(self, param)
|
__get_sub_rec(self, lpath)Get every wd from self._wdd if its path is under the path of one (at least) of those in l. 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 Wed Mar 29 03:46:07 2006 | http://epydoc.sf.net |