From 8b27511c0e1e9e920ca3ea33d5aff2ec818496ea Mon Sep 17 00:00:00 2001 From: Daira Hopwood Date: Thu, 5 Sep 2013 18:09:49 +0100 Subject: [PATCH] Thu Mar 22 13:18:06 GMT 2012 Peter Le Bek * 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 cc2a0a08..fde72d7f 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