Package buildbot :: Module dnotify :: Class DNotify
[frames | no frames]

Class DNotify


Method Summary
  __init__(self, dirname, callback, flags)
This object watches a directory for changes.
  fire(self)
  remove(self)

Class Variable Summary
int DN_ACCESS = 1                                                                     
int DN_ATTRIB = 32                                                                    
int DN_CREATE = 4                                                                     
int DN_DELETE = 8                                                                     
int DN_MODIFY = 2                                                                     
int DN_RENAME = 16                                                                    
list handler = [None]

Method Details

__init__(self, dirname, callback=None, flags=[2, 4, 8, 16])
(Constructor)

This object watches a directory for changes. The .callback attribute should be set to a function to be run every time something happens to it. Be aware that it will be called more times than you expect.

Class Variable Details

DN_ACCESS

Type:
int
Value:
1                                                                     

DN_ATTRIB

Type:
int
Value:
32                                                                    

DN_CREATE

Type:
int
Value:
4                                                                     

DN_DELETE

Type:
int
Value:
8                                                                     

DN_MODIFY

Type:
int
Value:
2                                                                     

DN_RENAME

Type:
int
Value:
16                                                                    

handler

Type:
list
Value:
[None]                                                                 

Generated by Epydoc 2.1 on Sun Dec 10 22:04:44 2006 http://epydoc.sf.net