Source code for platypush.message.event.file

from platypush.message.event import Event


[docs] class FileSystemEvent(Event): """ Base class for file system events - namely, file/directory creation, deletion and modification. """
[docs] def __init__(self, path: str, *, is_directory: bool, **kwargs): super().__init__(path=path, is_directory=is_directory, **kwargs)
[docs] class FileSystemCreateEvent(FileSystemEvent): """ Event triggered when a monitored file or directory is created. """
[docs] class FileSystemDeleteEvent(FileSystemEvent): """ Event triggered when a monitored file or directory is deleted. """
[docs] class FileSystemModifyEvent(FileSystemEvent): """ Event triggered when a monitored file or directory is modified. """