cowbird.monitoring.fsmonitor

Classes

FSMonitor

Interface being called when something changes on the filesystem.

Module Contents

class cowbird.monitoring.fsmonitor.FSMonitor[source]

Bases: abc.ABC

Interface being called when something changes on the filesystem.

static get_instance() FSMonitor | None[source]
Abstractmethod:

Must return an instance of the class implementing FSMonitor.

abstract on_created(path: str) None[source]

Called when a new path is found.

Parameters:

path – Absolute path of a new file/directory

abstract on_deleted(path: str) None[source]

Called when a path is deleted.

Parameters:

path – Absolute path of a new file/directory

abstract on_modified(path: str) None[source]

Called when a path is updated.

Parameters:

path – Absolute path of a new file/directory