Module inotifyx :: Class InotifyEvent
[hide private]
[frames] | no frames]

Class InotifyEvent

source code

object --+
         |
        InotifyEvent

InotifyEvent(wd, mask, cookie, name)

A representation of the inotify_event structure. See the inotify documentation for a description of these fields.

Instance Methods [hide private]
 
__init__(wd, mask, cookie, name)
x.__init__(...) initializes x; see x.__class__.__doc__ for signature
source code
 
__str__(self)
str(x)
source code
 
__repr__(self)
repr(x)
source code
 
get_mask_description(self)
Return an ASCII string describing the mask field in terms of bitwise-or'd IN_* constants, or 0.
source code

Inherited from object: __delattr__, __getattribute__, __hash__, __new__, __reduce__, __reduce_ex__, __setattr__

Class Variables [hide private]
  wd = None
  mask = None
  cookie = None
  name = None
Properties [hide private]

Inherited from object: __class__

Method Details [hide private]

__init__(wd, mask, cookie, name)
(Constructor)

source code 

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

Overrides: object.__init__
(inherited documentation)

__str__(self)
(Informal representation operator)

source code 

str(x)

Overrides: object.__str__
(inherited documentation)

__repr__(self)
(Representation operator)

source code 

repr(x)

Overrides: object.__repr__
(inherited documentation)

get_mask_description(self)

source code 

Return an ASCII string describing the mask field in terms of bitwise-or'd IN_* constants, or 0. The result is valid Python code that could be eval'd to get the value of the mask field. In other words, for a given event:

>>> from inotifyx import *
>>> assert (event.mask == eval(event.get_mask_description()))