From: Daira Hopwood Date: Wed, 30 Sep 2015 15:16:08 +0000 (+0100) Subject: Don't hardcode the encoded form of "/". X-Git-Url: https://git.rkrishnan.org/%5B/frontends/%22file:/rgr-080307.php?a=commitdiff_plain;h=c0f25480c7046bd03afac9e748ed03e60a0c5887;p=tahoe-lafs%2Ftahoe-lafs.git Don't hardcode the encoded form of "/". Signed-off-by: Daira Hopwood --- diff --git a/src/allmydata/frontends/magic_folder.py b/src/allmydata/frontends/magic_folder.py index 8987d63a..dc105667 100644 --- a/src/allmydata/frontends/magic_folder.py +++ b/src/allmydata/frontends/magic_folder.py @@ -316,7 +316,7 @@ class Uploader(QueueMixin): elif pathinfo.isdir: self._notifier.watch(fp, mask=self.mask, callbacks=[self._notify], recursive=True) uploadable = Data("", self._client.convergence) - encoded_name_u += u"@_" + encoded_path_u += magicpath.path2magic(u"/") upload_d = self._upload_dirnode.add_file(encoded_path_u, uploadable, metadata={"version":0}, overwrite=True) def _succeeded(ign): self._log("created subdirectory %r" % (relpath_u,))