projects
/
tahoe-lafs
/
tahoe-lafs.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
43a6123
)
Don't hardcode the encoded form of "/".
2506.enforce-paths.0
author
Daira Hopwood
<daira@jacaranda.org>
Wed, 30 Sep 2015 15:16:08 +0000
(16:16 +0100)
committer
Daira 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
patch
|
blob
|
history
diff --git
a/src/allmydata/frontends/magic_folder.py
b/src/allmydata/frontends/magic_folder.py
index 8987d63a8c553934d1c8867127b4003d4e3303fd..dc105667e5577f491c8f4c18c1ebe3a23d882c64 100644
(file)
--- 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,))