From ccf4b677a571a0e29db651586e21b11177c9d8a1 Mon Sep 17 00:00:00 2001 From: Daira Hopwood Date: Tue, 28 Apr 2015 19:34:39 +0100 Subject: [PATCH] Scan dir when service starts Signed-off-by: Daira Hopwood --- src/allmydata/frontends/drop_upload.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/allmydata/frontends/drop_upload.py b/src/allmydata/frontends/drop_upload.py index a553fe64..8dfc7449 100644 --- a/src/allmydata/frontends/drop_upload.py +++ b/src/allmydata/frontends/drop_upload.py @@ -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() -- 2.45.2