# ``twisted`.`internet`.`inotify`.`_Watch``

class documentation

`class _Watch: (source)`

View In Hierarchy

Watch object that represents a Watch point in the filesystem. The user should let INotify to create these objects

Method | `__init__` | Undocumented
Instance Variable | `autoAdd` | Flag that determines whether this watch point should automatically add created subdirectories
Instance Variable | `callbacks` | `list` of callback functions that will be called when an event occurs on this watch.
Instance Variable | `mask` | The events monitored by this watchpoint
Instance Variable | `path` | The path over which this watch point is monitoring
Method | `_notify` | Callback function used by `INotify` to dispatch an event.

def __init__(self, path, mask=IN_WATCH_MASK, autoAdd=False, callbacks=None): (source)

Undocumented

autoAdd = (source)
Flag that determines whether this watch point should automatically add created subdirectories
callbacks = (source)
`list` of callback functions that will be called when an event occurs on this watch.
mask = (source)
The events monitored by this watchpoint
path = (source)
The path over which this watch point is monitoring
def _notify(self, filepath, events): (source)
Callback function used by `INotify` to dispatch an event.