ftplib question: how to upload files?

Patrick Useldinger p.useldinger at myrealbox.com
Thu Sep 11 16:02:32 EDT 2003


On Thu, 11 Sep 2003 14:35:32 -0400 (EDT), python at sarcastic-horse.com
wrote:


>What do I do to send files?

I use this:

f=file(fileName,'rb')
conn.storbinary('STOR '+os.path.basename(fileName),f)

-PU





More information about the Python-list mailing list