self._convergence = client.convergence
self._local_path = FilePath(local_dir)
+ self.is_upload_ready = False
+
if inotify is None:
from twisted.internet import inotify
self._inotify = inotify
self._stats_provider.count('drop_upload.dirs_monitored', 1)
return d
+ def upload_ready(self):
+ """upload_ready is used to signal us to start
+ processing the upload items...
+ """
+ self.is_upload_ready = True
+
def _notify(self, opaque, path, events_mask):
self._log("inotify event %r, %r, %r\n" % (opaque, path, ', '.join(self._inotify.humanReadableMask(events_mask))))