if downloaded.tell() != 0:
    link.retrbinary('RETR ' + filename, downloaded.write, downloaded.tell())
else:
    link.retrbinary('RETR ' + filename, downloaded.write)
Download big files via FTP with python