]> git.rkrishnan.org Git - tahoe-lafs/tahoe-lafs.git/commitdiff
Change when _scan is called.
authorDaira Hopwood <daira@jacaranda.org>
Tue, 21 Apr 2015 22:53:39 +0000 (23:53 +0100)
committerDaira Hopwood <daira@jacaranda.org>
Tue, 28 Apr 2015 18:46:48 +0000 (19:46 +0100)
Signed-off-by: Daira Hopwood <daira@jacaranda.org>
src/allmydata/frontends/drop_upload.py

index 3f5299049b608378257f40727274f4f2ba2803f1..8664da1a85af2c86977e8afe6105c44ca18bd043 100644 (file)
@@ -119,11 +119,12 @@ class DropUploader(service.MultiService):
                 self.warn("WARNING: cannot backup symlink %s" % quote_local_unicode_path(childpath))
             elif isdir:
                 print "isdir"
-                # recurse on the child directory
-                self._scan(childpath)
                 must_upload = self._check_db_file(childpath.decode('UTF-8'))
                 if must_upload:
                     self._append_to_deque(childpath)
+
+                # recurse on the child directory
+                self._scan(childpath)
             elif isfile:
                 print "isfile %s" % (childpath,)
                 must_upload = self._check_db_file(childpath.decode('UTF-8'))