watchdog.observers

Contents

watchdog.observers#

module:

watchdog.observers

synopsis:

Observer that picks a native implementation if available.

author:

yesudeep@google.com (Yesudeep Mangalapilly)

author:

Mickaël Schoentgen <contact@tiger-222.fr>

Classes#

watchdog.observers.Observer#

alias of InotifyObserver

Observer thread that schedules watching directories and dispatches calls to event handlers.

You can also import platform specific classes directly and use it instead of Observer. Here is a list of implemented observer classes.:

Class

Platforms

Note

inotify.InotifyObserver

Linux 2.6.13+

inotify(7) based observer

fsevents.FSEventsObserver

macOS

FSEvents based observer

kqueue.KqueueObserver

macOS and BSD with kqueue(2)

kqueue(2) based observer

read_directory_changes.WindowsApiObserver

Microsoft Windows

Windows API-based observer

polling.PollingObserver

Any

fallback implementation