]> git.rkrishnan.org Git - tahoe-lafs/tahoe-lafs.git/commitdiff
Add recursive=True to drop_upload watch.
authorDaira Hopwood <daira@jacaranda.org>
Mon, 20 Apr 2015 16:17:52 +0000 (17:17 +0100)
committerDaira Hopwood <daira@jacaranda.org>
Tue, 28 Apr 2015 18:45:15 +0000 (19:45 +0100)
Signed-off-by: Daira Hopwood <daira@jacaranda.org>
src/allmydata/frontends/drop_upload.py

index 78fee45e41b648d8d623001bb96d5de2586fb912..bdf962c54b2a8b7c3bfbe9367547f8e909319ba3 100644 (file)
@@ -79,7 +79,8 @@ class DropUploader(service.MultiService):
         # be an IN_CLOSE_WRITE after an IN_CREATE (I think).
         # TODO: what about IN_MOVE_SELF or IN_UNMOUNT?
         mask = inotify.IN_CLOSE_WRITE | inotify.IN_MOVED_TO | inotify.IN_ONLYDIR
-        self._notifier.watch(self._local_path, mask=mask, callbacks=[self._notify], autoAdd=True)
+        self._notifier.watch(self._local_path, mask=mask, callbacks=[self._notify],
+                             autoAdd=True, recursive=True)
 
     def _check_db_file(self, childpath):
         # returns True if the file must be uploaded.