'Retrieve the size of a file.'

def size(self, filename):

    resp = self.sendcmd(('SIZE    ' + filename))
    if (resp[:3] == '213'):
        s = resp[3:].strip()
        try:
            return int(s)
        except (OverflowError, ValueError):
            return long(s)
