FileWatcher

class glue.core.data_factories.FileWatcher(path, callback, poll_interval=1000)[source]

Bases: object

Watch 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(self)

start(self)

stop(self)

Methods Documentation

check_for_changes(self)[source]
start(self)[source]
stop(self)[source]