Signed-off-by: Daira Hopwood <daira@jacaranda.org>
self._local_path = to_filepath(local_path_u)
self._db = db
self._name = name
- self._hooks = {'processed': None}
+ self._hooks = {'processed': None, 'started': None}
if not self._local_path.exists():
raise AssertionError("The '[magic_folder] local.directory' parameter was %s "
def start_monitoring(self):
d = self._notifier.startReading()
self._count('dirs_monitored')
+ d.addBoth(self._call_hook, 'started')
return d
def stop(self):