cowbird.monitoring.fsmonitor

Module Contents

Classes

FSMonitor

Interface being called when something changes on the filesystem.

class cowbird.monitoring.fsmonitor.FSMonitor[source]

Bases: abc.ABC

Interface being called when something changes on the filesystem.

abstract static get_instance() FSMonitor | None[source]

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