]> git.rkrishnan.org Git - tahoe-lafs/tahoe-lafs.git/commitdiff
Add precondition to Uploader._process.
authorDaira Hopwood <daira@jacaranda.org>
Mon, 2 Nov 2015 22:12:38 +0000 (22:12 +0000)
committerDaira Hopwood <daira@jacaranda.org>
Mon, 2 Nov 2015 22:12:38 +0000 (22:12 +0000)
Signed-off-by: Daira Hopwood <daira@jacaranda.org>
src/allmydata/frontends/magic_folder.py

index 4e0143b326eeb3cd387d2f535a36dcbfbdc01828..35db9597afbe5fcb47328c70ac68bb216aca5ce7 100644 (file)
@@ -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)