platypush.backend.inotify

class platypush.backend.inotify.InotifyBackend(watch_paths=None, **kwargs)[source]

NOTE: This backend is deprecated in favour of platypush.backend.file.monitor.FileMonitorBackend.

(Linux only) This backend will listen for events on the filesystem (whether a file/directory on a watch list is opened, modified, created, deleted, closed or had its permissions changed) and will trigger a relevant event.

Triggers:

Requires:

  • inotify (pip install inotify)

__init__(watch_paths=None, **kwargs)[source]
Parameters

watch_paths (str) – Filesystem resources to watch for events

run()[source]

Starts the backend thread. To be implemented in the derived classes if the loop method isn’t defined.