probably by using REST. This stupid program puts a 200 line file by sending 100 lines, then using REST to set a resume position and sending the next 100 lines.
import getpass, StringIO, ftplib lines = ["Line %d\n" % i for i in range(200)] part1 = "".join(lines[:100]) part2 = "".join(lines[:100]) f = ftplib.FTP('server', 'username', 'password') f.debugging = True f.sendcmd('CWD /tmp') f.storbinary("STOR example", StringIO.StringIO(part1)) f.putcmd('REST %d' % len(part1)) resp = f.getresp(); if resp[0] != '3': raise ftplib.error_reply, resp f.storbinary("STOR example", StringIO.StringIO(part2)) f.quit()
pgpMaKwqk7zHF.pgp
Description: PGP signature
-- http://mail.python.org/mailman/listinfo/python-list