]> 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, 21 Apr 2015 22:53:39 +0000 (23:53 +0100)
Signed-off-by: Daira Hopwood <daira@jacaranda.org>
src/allmydata/frontends/drop_upload.py

index 0b3287c54aacae538018f93e283b4c5e02deff85..e02caa5277783e80dcebcf9f463380b2e426cc5f 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'))