Category: watchdog

Problem

React to filesystem events with watchdog.

Solution

  observer.schedule(handler, path, recursive=True)
observer.start()
  

Notes

  • Adapt variable names and paths to your project
  • Add error handling for production use
  • See related chapters in the Learning Path