cowbird.monitoring.fsmonitor

Module Contents

Classes

FSMonitor

Interface being called when something chang on the filesystem.

class cowbird.monitoring.fsmonitor.FSMonitor[source]

Bases: abc.ABC

Interface being called when something chang on the filesystem.

abstract static get_instance()[source]

Must return a monitor instance.

abstract on_created(self: str, filename)None[source]

Call when a new file is found.

Parameters

filename – Relative filename of a new file

abstract on_deleted(self: str, filename)None[source]

Call when a file is deleted.

Parameters

filename – Relative filename of the removed file

abstract on_modified(self: str, filename)None[source]

Call when a file is updated.

Parameters

filename – Relative filename of the updated file