mirror of
https://github.com/tahoe-lafs/tahoe-lafs.git
synced 2024-12-20 05:28:04 +00:00
Add a 'started' hook for the Magic Folder Uploader.
Signed-off-by: Daira Hopwood <daira@jacaranda.org>
This commit is contained in:
parent
a3c4364d7b
commit
a5a5c1da1d
@ -95,7 +95,7 @@ class QueueMixin(HookMixin):
|
||||
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 "
|
||||
@ -184,6 +184,7 @@ class Uploader(QueueMixin):
|
||||
def start_monitoring(self):
|
||||
d = self._notifier.startReading()
|
||||
self._count('dirs_monitored')
|
||||
d.addBoth(self._call_hook, 'started')
|
||||
return d
|
||||
|
||||
def stop(self):
|
||||
|
Loading…
Reference in New Issue
Block a user