Package flumotion :: Package component :: Package base :: Module watcher :: Class DirectoryWatcher
[hide private]

Class DirectoryWatcher

source code

extern.log.log.Loggable --+    
                          |    
                BaseWatcher --+
                              |
                             DirectoryWatcher

Directory Watcher Watches a directory for new files.

Instance Methods [hide private]
 
__init__(self, path, ignorefiles=(), timeout=30)
Make a file watcher object.
source code
 
getFilesToStat(self)
Returns: sequence of filename
source code

Inherited from BaseWatcher: event, getFileData, isNewFileStable, start, stop, subscribe, unsubscribe

Inherited from BaseWatcher (private): _reset, _subscribe

Inherited from extern.log.log.Loggable: __providedBy__, debug, doLog, error, info, log, logFunction, logObjectName, warning, warningFailure, writeMarker

Class Variables [hide private]

Inherited from extern.log.log.Loggable: __implemented__, __provides__, logCategory

Method Details [hide private]

__init__(self, path, ignorefiles=(), timeout=30)
(Constructor)

source code 

Make a file watcher object.

Parameters:
  • timeout - timeout between checks, in seconds
Overrides: BaseWatcher.__init__
(inherited documentation)

getFilesToStat(self)

source code 
Returns:
sequence of filename
Overrides: BaseWatcher.getFilesToStat
(inherited documentation)