From 7f6ee7e9180377bc49aed5177def8b55f4e80257 Mon Sep 17 00:00:00 2001
From: Peter Le Bek <peter@hyperplex.net>
Date: Thu, 22 Mar 2012 13:18:06 +0000
Subject: [PATCH] ftpd file `size' attribute must be an integer

---
 src/allmydata/frontends/ftpd.py | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/allmydata/frontends/ftpd.py b/src/allmydata/frontends/ftpd.py
index 6bee4e0a..4ccb0919 100644
--- a/src/allmydata/frontends/ftpd.py
+++ b/src/allmydata/frontends/ftpd.py
@@ -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":
-- 
2.45.2