inotify

class platypush.message.event.inotify.InotifyAccessEvent(path: str, resource: Optional[str] = None, resource_type: Optional[str] = None, *args, **kwargs)[source]

Event triggered when a monitored resource is accessed.

class platypush.message.event.inotify.InotifyCloseEvent(path: str, resource: Optional[str] = None, resource_type: Optional[str] = None, *args, **kwargs)[source]

Event triggered when a monitored resource is closed.

class platypush.message.event.inotify.InotifyCreateEvent(path: str, resource: Optional[str] = None, resource_type: Optional[str] = None, *args, **kwargs)[source]

Event triggered when a monitored resource is created.

class platypush.message.event.inotify.InotifyDeleteEvent(path: str, resource: Optional[str] = None, resource_type: Optional[str] = None, *args, **kwargs)[source]

Event triggered when a monitored resource is deleted.

class platypush.message.event.inotify.InotifyEvent(path: str, resource: Optional[str] = None, resource_type: Optional[str] = None, *args, **kwargs)[source]

Generic super-class for inotify events.

__init__(path: str, resource: Optional[str] = None, resource_type: Optional[str] = None, *args, **kwargs)[source]
Parameters
  • path – Monitored path.

  • resource – File/resource name.

  • resource_type – INotify type of the resource, if available.

class platypush.message.event.inotify.InotifyModifyEvent(path: str, resource: Optional[str] = None, resource_type: Optional[str] = None, *args, **kwargs)[source]

Event triggered when a monitored resource is modified.

class platypush.message.event.inotify.InotifyMovedEvent(path: str, old: Optional[str] = None, new: Optional[str] = None, *args, **kwargs)[source]

Event triggered when a resource in a monitored path is moved.

__init__(path: str, old: Optional[str] = None, new: Optional[str] = None, *args, **kwargs)[source]
Parameters
  • path – Monitored path.

  • old – Old name.

  • new – New name.

class platypush.message.event.inotify.InotifyOpenEvent(path: str, resource: Optional[str] = None, resource_type: Optional[str] = None, *args, **kwargs)[source]

Event triggered when a monitored resource is opened.

class platypush.message.event.inotify.InotifyPermissionsChangeEvent(path: str, umask: int, resource: Optional[str] = None, *args, **kwargs)[source]

Event triggered when the permissions on a monitored resource are changed.

__init__(path: str, umask: int, resource: Optional[str] = None, *args, **kwargs)[source]
Parameters
  • path – Monitored path.

  • umask – New umask.

  • resource – File/resource name.