Package wafadmin :: Package Tools :: Module DirWatch :: Class WatchObject
[hide private]
[frames] | no frames]

Class WatchObject

source code

Instance Methods [hide private]
 
__init__(self, idxName, namePath, isDir, callBackThis, handleEvents)
watch object to handle a watch
source code
 
__del__(self) source code
 
watch(self, adaptor)
start watching
source code
 
unwatch(self)
stop watching
source code
 
get_events(self)
returns all events to care
source code
 
get_callback(self)
returns the callback methode
source code
 
get_fullpath(self, fileName)
returns the full path dir + filename
source code
 
__str__(self) source code
Method Details [hide private]

__init__(self, idxName, namePath, isDir, callBackThis, handleEvents)
(Constructor)

source code 

watch object to handle a watch

Parameters:
  • idxName - unique name for ref
  • dirList - path to watch
  • isDir - directory True or False
  • callBackThis - is called if something in dirs in dirlist has events (handleEvents) callBackThis(idxName, changedFilePath)
  • handleEvents - events to handle possible are 'changed', 'deleted', 'created', 'exist' suspendDirWatch after a handled change

watch(self, adaptor)

source code 

start watching

Parameters:
  • adaptor - dirwatch adaptor for backend