From 5f98d7321686050fea1f5b3c1039ce06dc5e75e6 Mon Sep 17 00:00:00 2001 From: Daira Hopwood Date: Mon, 2 Nov 2015 22:12:38 +0000 Subject: [PATCH] Add precondition to Uploader._process. Signed-off-by: Daira Hopwood --- src/allmydata/frontends/magic_folder.py | 1 + 1 file changed, 1 insertion(+) diff --git a/src/allmydata/frontends/magic_folder.py b/src/allmydata/frontends/magic_folder.py index 4e0143b32..35db9597a 100644 --- a/src/allmydata/frontends/magic_folder.py +++ b/src/allmydata/frontends/magic_folder.py @@ -300,6 +300,7 @@ class Uploader(QueueMixin): if relpath_u is None: return precondition(isinstance(relpath_u, unicode), relpath_u) + precondition(not relpath_u.endswith(u'/'), relpath_u) d = defer.succeed(None)