From: Daira Hopwood Date: Tue, 22 Sep 2015 15:46:43 +0000 (+0100) Subject: Relative paths used by magic folder are '/'-separated on all platforms. X-Git-Url: https://git.rkrishnan.org/pf/content/en/service/somewhere?a=commitdiff_plain;h=249de244b0cf228c5ae7e6656b5b1a5dfe7bd8cc;p=tahoe-lafs%2Ftahoe-lafs.git Relative paths used by magic folder are '/'-separated on all platforms. Signed-off-by: Daira Hopwood --- diff --git a/src/allmydata/frontends/magic_folder.py b/src/allmydata/frontends/magic_folder.py index 59087ca0..17be7570 100644 --- a/src/allmydata/frontends/magic_folder.py +++ b/src/allmydata/frontends/magic_folder.py @@ -247,7 +247,7 @@ class Uploader(QueueMixin): d = defer.succeed(None) for child in children: assert isinstance(child, unicode), child - d.addCallback(lambda ign, child=child: os.path.join(reldir_u, child)) + d.addCallback(lambda ign, child=child: "%s/%s" % (reldir_u, child)) def _add_pending(relpath_u): self._pending.add(relpath_u) return relpath_u