]> git.rkrishnan.org Git - tahoe-lafs/tahoe-lafs.git/commitdiff
Don't hardcode the encoded form of "/". 2506.enforce-paths.0
authorDaira Hopwood <daira@jacaranda.org>
Wed, 30 Sep 2015 15:16:08 +0000 (16:16 +0100)
committerDaira Hopwood <daira@jacaranda.org>
Wed, 30 Sep 2015 15:22:54 +0000 (16:22 +0100)
Signed-off-by: Daira Hopwood <daira@jacaranda.org>
src/allmydata/frontends/magic_folder.py

index 8987d63a8c553934d1c8867127b4003d4e3303fd..dc105667e5577f491c8f4c18c1ebe3a23d882c64 100644 (file)
@@ -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,))