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

Class DNotify

source code

Instance Methods
 
__init__(self, dirname, callback=None, flags=[2, 4, 8, 16])
This object watches a directory for changes.
source code
 
remove(self) source code
 
fire(self) source code
Class Variables
  DN_ACCESS = 1
  DN_MODIFY = 2
  DN_CREATE = 4
  DN_DELETE = 8
  DN_RENAME = 16
  DN_ATTRIB = 32
  handler = [None]
Method Details

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

source code 

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.