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