From: Peter Le Bek Date: Thu, 22 Mar 2012 13:18:06 +0000 (+0000) Subject: ftpd file `size' attribute must be an integer X-Git-Url: https://git.rkrishnan.org/?a=commitdiff_plain;h=7f6ee7e9180377bc49aed5177def8b55f4e80257;p=tahoe-lafs%2Ftahoe-lafs.git ftpd file `size' attribute must be an integer --- 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":