inotify
Platypush documentation
inotify
- class platypush.backend.inotify.InotifyBackend(watch_paths=None, **kwargs)[source]
Bases:
Backend
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:
platypush.message.event.inotify.InotifyCreateEvent
if a resource is createdplatypush.message.event.inotify.InotifyAccessEvent
if a resource is accessedplatypush.message.event.inotify.InotifyOpenEvent
if a resource is openedplatypush.message.event.inotify.InotifyModifyEvent
if a resource is modifiedplatypush.message.event.inotify.InotifyPermissionsChangeEvent
if the permissions of a resource are changedplatypush.message.event.inotify.InotifyCloseEvent
if a resource is closedplatypush.message.event.inotify.InotifyDeleteEvent
if a resource is removed
Requires:
inotify (
pip install inotify
)