]> git.rkrishnan.org Git - tahoe-lafs/tahoe-lafs.git/commitdiff
Thu Mar 22 13:18:06 GMT 2012 Peter Le Bek <peter@hyperplex.net>
authorDaira Hopwood <daira@jacaranda.org>
Thu, 5 Sep 2013 17:09:49 +0000 (18:09 +0100)
committerDaira Hopwood <daira@jacaranda.org>
Thu, 5 Sep 2013 17:09:49 +0000 (18:09 +0100)
  * ftpd file `size' attribute must be an integer

src/allmydata/frontends/ftpd.py

index cc2a0a084ecdaecf44eea46ef88918e631690669..fde72d7fe779e7523e8a689d0f4c7bcacebfebed 100644 (file)
@@ -193,7 +193,7 @@ class Handler:
                 if isdir:
                     value = 0
                 else:
-                    value = childnode.get_size()
+                    value = childnode.get_size() or 0
             elif key == "directory":
                 value = isdir
             elif key == "permissions":