Put a file on an ftp server over ssl

Daniel Santa Cruz dstcruz at gmail.com
Tue May 10 12:55:32 EDT 2005


Hello all!

I have been troubled for the past couple of days trying to write a
simple script that sends a file to an ftp server.  It used to be the
easiest thing in the world, but now the server has changed to a ftps
(ftp over ssl) server.  All of the sudden, the world has come to a
crawling stop.

Seems that M2Crypto would maybe do the trick, but I can't buy the thing
(they won't pay for it).  Other than suggesting projects, does any one
have actuall working code to do something like this?  My, it seems like
it should be VERY simple, but it has become a nightmare.

Oh do I wish...

f = ftps.connect('username', 'password', port)
ftps.put(localFilePath)

Done!

Thanks for any help!

Daniel




More information about the Python-list mailing list