Module pyinotify :: Class Event
[show private | hide private]
[frames | no frames]

Type Event

object --+
         |
        Event


Observed event structure, contains useful informations about the observed event.
Method Summary
  __init__(self, wd, mask, cookie, path, name)
As additional member there is a boolean variable isdir, which tell if the event occured against a directory.
string __repr__(self)
Return string representation.
    Inherited from object
  __delattr__(...)
x.__delattr__('name') <==> del x.name
  __getattribute__(...)
x.__getattribute__('name') <==> x.name
  __hash__(x)
x.__hash__() <==> hash(x)
  __new__(T, S, ...)
T.__new__(S, ...) -> a new object with type S, a subtype of T
  __reduce__(...)
helper for pickle
  __reduce_ex__(...)
helper for pickle
  __setattr__(...)
x.__setattr__('name', value) <==> x.name = value
  __str__(x)
x.__str__() <==> str(x)

Instance Variable Summary
bool isdir: flag telling if the event occured against a directory.

Method Details

__init__(self, wd, mask, cookie, path, name=None)
(Constructor)

As additional member there is a boolean variable isdir, which tell if the event occured against a directory.
Parameters:
wd - Watch Descriptor.
           (type=int)
mask - Bitmask of events.
           (type=int)
cookie - Cookie.
           (type=int)
path - Path of the file or directory being watched. If it is a file and that's file is directly watched, the basename is included. ex: path=/apath/foo.txt
           (type=string)
name - Basename of the file if the event is raised on a watched directory, None if it is the file itself who is directly watched.
           (type=string or None)
Overrides:
__builtin__.object.__init__

__repr__(self)
(Representation operator)

Returns:
String representation.
           (type=string)
Overrides:
__builtin__.object.__repr__

Instance Variable Details

isdir

flag telling if the event occured against a directory.
Type:
bool

Generated by Epydoc 2.1 on Wed Mar 29 03:46:07 2006 http://epydoc.sf.net