]> 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>
Mon, 20 Apr 2015 16:17:52 +0000 (17:17 +0100)
Signed-off-by: Daira Hopwood <daira@jacaranda.org>
src/allmydata/frontends/drop_upload.py

index 988da2794620ce412276bb333cefb2f95092ba74..9c2efbaeb2f0ccf8b5c71389c775d559683cd68e 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.