Using ftplib to upload a file to a server....

John Abel john.abel at pa.press.net
Thu Jun 19 10:06:33 EDT 2003


Hi,

To upload a file, using ftplib, you need to use storbinary, and 
storlines.  As for examples, you could have a look at the the cookbook, 
available at aspn.activestate.com.

HTH

John

Francois Meehan wrote:

> Hi all,
>
> Please excuse my "newbiness", but I can't get python to upload a file 
> using ftplib, basically I don't make sense of the transfercmd.
>
> I can connect, return a file listing, but could not find upload 
> example on the net.
>
> Could someone provide me an example? Or is there an easier modules to 
> use for FTP file transfer?
>
> Francois
>
>
>







More information about the Python-list mailing list