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

Type EventsCodes

object --+
         |
        EventsCodes


Set of codes corresponding to each kind of events. Some of these flags are used to communicate with inotify, whereas the others are sent to userspace by inotify notifying some events.
Method Summary
    Inherited from object
  __init__(...)
x.__init__(...) initializes x; see x.__class__.__doc__ for signature
  __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
  __repr__(x)
x.__repr__() <==> repr(x)
  __setattr__(...)
x.__setattr__('name', value) <==> x.name = value
  __str__(x)
x.__str__() <==> str(x)

Class Variable Summary
int ALL_EVENTS: Alias for considering all of the events.
dict ALL_FLAGS = {'IN_MOVED_FROM': 64, 'IN_CREATE': 256, 'IN_...
dict EVENT_FLAGS = {'IN_Q_OVERFLOW': 16384, 'IN_IGNORED': 327...
dict FLAG_COLLECTIONS = {'SPECIAL_FLAGS': {'IN_ONLYDIR': 1677...
int IN_ACCESS: File was accessed.
int IN_ATTRIB: Metadata changed.
int IN_CLOSE_NOWRITE: Unwrittable file closed.
int IN_CLOSE_WRITE: Writtable file was closed.
int IN_CREATE: Subfile was created.
int IN_DELETE: Subfile was deleted.
int IN_DELETE_SELF: Self (watched item itself) was deleted.
int IN_DONT_FOLLOW: don't follow a symlink (new in kernel 2.6.15).
int IN_IGNORED: File was ignored.
int IN_ISDIR: Event occurred against dir.
int IN_MASK_ADD: add to the mask of an already existing watch (new in kernel 2.6.14).
int IN_MODIFY: File was modified.
int IN_MOVE_SELF: Self (watched item itself) was moved.
int IN_MOVED_FROM: File was moved from X.
int IN_MOVED_TO: File was moved to Y.
int IN_ONESHOT: Only send event once.
int IN_ONLYDIR: only watch the path if it is a directory (new in kernel 2.6.15).
int IN_OPEN: File was opened.
int IN_Q_OVERFLOW: Event queued overflowed.
int IN_UNMOUNT: Backing fs was unmounted.
dict OP_FLAGS = {'IN_MOVED_FROM': 64, 'IN_MODIFY': 2, 'IN_CRE...
dict SPECIAL_FLAGS = {'IN_ONLYDIR': 16777216, 'IN_ISDIR': 107...

Class Variable Details

ALL_EVENTS

Alias for considering all of the events.
Type:
int
Value:
4095                                                                  

ALL_FLAGS

Type:
dict
Value:
{'IN_ACCESS': 1,
 'IN_ATTRIB': 4,
 'IN_CLOSE_NOWRITE': 16,
 'IN_CLOSE_WRITE': 8,
 'IN_CREATE': 256,
 'IN_DELETE': 512,
 'IN_DELETE_SELF': 1024,
 'IN_DONT_FOLLOW': 33554432,
...                                                                    

EVENT_FLAGS

Type:
dict
Value:
{'IN_Q_OVERFLOW': 16384, 'IN_IGNORED': 32768, 'IN_UNMOUNT': 8192}      

FLAG_COLLECTIONS

Type:
dict
Value:
{'EVENT_FLAGS': {'IN_IGNORED': 32768,
                 'IN_Q_OVERFLOW': 16384,
                 'IN_UNMOUNT': 8192},
 'OP_FLAGS': {'IN_ACCESS': 1,
              'IN_ATTRIB': 4,
              'IN_CLOSE_NOWRITE': 16,
              'IN_CLOSE_WRITE': 8,
              'IN_CREATE': 256,
...                                                                    

IN_ACCESS

File was accessed.
Type:
int
Value:
1                                                                     

IN_ATTRIB

Metadata changed.
Type:
int
Value:
4                                                                     

IN_CLOSE_NOWRITE

Unwrittable file closed.
Type:
int
Value:
16                                                                    

IN_CLOSE_WRITE

Writtable file was closed.
Type:
int
Value:
8                                                                     

IN_CREATE

Subfile was created.
Type:
int
Value:
256                                                                   

IN_DELETE

Subfile was deleted.
Type:
int
Value:
512                                                                   

IN_DELETE_SELF

Self (watched item itself) was deleted.
Type:
int
Value:
1024                                                                  

IN_DONT_FOLLOW

don't follow a symlink (new in kernel 2.6.15). IN_ONLYDIR we can make sure that we don't watch the target of symlinks.
Type:
int
Value:
33554432                                                              

IN_IGNORED

File was ignored.
Type:
int
Value:
32768                                                                 

IN_ISDIR

Event occurred against dir.
Type:
int
Value:
1073741824                                                            

IN_MASK_ADD

add to the mask of an already existing watch (new in kernel 2.6.14).
Type:
int
Value:
536870912                                                             

IN_MODIFY

File was modified.
Type:
int
Value:
2                                                                     

IN_MOVE_SELF

Self (watched item itself) was moved.
Type:
int
Value:
2048                                                                  

IN_MOVED_FROM

File was moved from X.
Type:
int
Value:
64                                                                    

IN_MOVED_TO

File was moved to Y.
Type:
int
Value:
128                                                                   

IN_ONESHOT

Only send event once.
Type:
int
Value:
2147483648L                                                            

IN_ONLYDIR

only watch the path if it is a directory (new in kernel 2.6.15).
Type:
int
Value:
16777216                                                              

IN_OPEN

File was opened.
Type:
int
Value:
32                                                                    

IN_Q_OVERFLOW

Event queued overflowed.
Type:
int
Value:
16384                                                                 

IN_UNMOUNT

Backing fs was unmounted.
Type:
int
Value:
8192                                                                  

OP_FLAGS

Type:
dict
Value:
{'IN_ACCESS': 1,
 'IN_ATTRIB': 4,
 'IN_CLOSE_NOWRITE': 16,
 'IN_CLOSE_WRITE': 8,
 'IN_CREATE': 256,
 'IN_DELETE': 512,
 'IN_DELETE_SELF': 1024,
 'IN_MODIFY': 2,
...                                                                    

SPECIAL_FLAGS

Type:
dict
Value:
{'IN_DONT_FOLLOW': 33554432,
 'IN_ISDIR': 1073741824,
 'IN_MASK_ADD': 536870912,
 'IN_ONESHOT': 2147483648L,
 'IN_ONLYDIR': 16777216}                                               

Generated by Epydoc 2.1 on Tue Jul 10 21:40:43 2007 http://epydoc.sf.net