ftpd file `size' attribute must be an integer

This commit is contained in:
Peter Le Bek 2012-03-22 13:18:06 +00:00
parent be1fd9d2b5
commit 7f6ee7e918

View 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":