FileWatcher¶
- class glue.core.data_factories.FileWatcher(path, callback, poll_interval=1000)¶
Bases:
object
Watch a path for modifications, and perform an action on change
- Parameters:
- pathstr
The path to watch.
- callbackcallable
A function to call when the path changes.
- poll_intervalint
Time to wait between checks, in ms.
Methods Summary
start
()stop
()Methods Documentation
- check_for_changes()¶
- start()¶
- stop()¶