]> git.rkrishnan.org Git - tahoe-lafs/tahoe-lafs.git/commitdiff
ftpd file `size' attribute must be an integer
authorPeter Le Bek <peter@hyperplex.net>
Thu, 22 Mar 2012 13:18:06 +0000 (13:18 +0000)
committerPeter Le Bek <peter@hyperplex.net>
Thu, 22 Mar 2012 13:18:06 +0000 (13:18 +0000)
src/allmydata/frontends/ftpd.py

index 6bee4e0a6919ffc49835ef41882fcb55690d8027..4ccb091919536f241c9e113b52898233aa52fbe8 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":