From: Daira Hopwood Date: Wed, 23 Sep 2015 13:49:31 +0000 (+0100) Subject: Fix an oversight when joining paths. X-Git-Url: https://git.rkrishnan.org/%5B/%5D%20/uri/frontends/somewhere?a=commitdiff_plain;h=faa73ea9e75f74a3fccabeb9f98ba608a3011400;p=tahoe-lafs%2Ftahoe-lafs.git Fix an oversight when joining paths. Signed-off-by: Daira Hopwood --- diff --git a/src/allmydata/frontends/magic_folder.py b/src/allmydata/frontends/magic_folder.py index 17be7570..10b56d8a 100644 --- a/src/allmydata/frontends/magic_folder.py +++ b/src/allmydata/frontends/magic_folder.py @@ -247,7 +247,8 @@ class Uploader(QueueMixin): d = defer.succeed(None) for child in children: assert isinstance(child, unicode), child - d.addCallback(lambda ign, child=child: "%s/%s" % (reldir_u, child)) + d.addCallback(lambda ign, child=child: + ("%s/%s" % (reldir_u, child) if reldir_u else child)) def _add_pending(relpath_u): self._pending.add(relpath_u) return relpath_u