notes

Personal notes
git clone git://git.laack.co/notes.git
Log | Files | Refs

Watchdog.md (638B)


      1 # Watchdog
      2 
      3 **Source:** [Watchdog Documentation](https://python-watchdog.readthedocs.io/en/stable/index.html)
      4 
      5 ## Details
      6 
      7 The `watchdog` package is used to monitor changes to the filesystem, using inotify on Linux, but the specifics don't matter too much as it works across platforms.
      8 
      9 The usage of the module is primry done with `Observer` objects which accept a function and path, amongst other optional arguments, and calls the function when files are observed to have changed.
     10 
     11 NOTE: By default, an `Observer` does not listen for updates in subdirectories, and thus requires passing in the `recursive=True` input to listen for them.