]> git.rkrishnan.org Git - tahoe-lafs/tahoe-lafs.git/commitdiff
Scan dir when service starts
authorDaira Hopwood <daira@jacaranda.org>
Tue, 28 Apr 2015 18:34:39 +0000 (19:34 +0100)
committerDaira Hopwood <daira@jacaranda.org>
Tue, 28 Apr 2015 18:34:39 +0000 (19:34 +0100)
Signed-off-by: Daira Hopwood <daira@jacaranda.org>
src/allmydata/frontends/drop_upload.py

index a553fe64ee57f2ef1b475497882953aab150e974..8dfc7449cff91a2c98e87e2d447dd2647291ac2d 100644 (file)
@@ -93,7 +93,7 @@ class DropUploader(service.MultiService):
         except EnvironmentError:
             raise(Exception("WARNING: magic folder: permission denied on directory %s" % (quoted_path,)))
         except FilenameEncodingError:
-            raise(Esception("WARNING: magic folder: could not list directory %s due to a filename encoding error" % (quoted_path,)))
+            raise(Exception("WARNING: magic folder: could not list directory %s due to a filename encoding error" % (quoted_path,)))
 
         for child in children:
             assert isinstance(child, unicode), child
@@ -117,6 +117,8 @@ class DropUploader(service.MultiService):
         if self._db is None:
             return Failure(Exception('ERROR: Unable to load magic folder db.'))
 
+        self._scan(self._local_path)
+
         service.MultiService.startService(self)
         d = self._notifier.startReading()