[ftputil] host

Stefan Schwarzer sschwarzer at sschwarzer.net
Mon Jun 13 06:27:46 CEST 2005


Hello Kerri

On 2005-06-13 02:13, Kerri Korschgen wrote:
> Please help asap. I need question answered by 6am Mountain Time.

I don't know what "Mountain Time" is; I'm in Europe. ;-) I'll just
answer.

> Can I use an IP address for host?
> ftputil.FTPHost('ftp.domain.com', 'user', 'secret')

By default, ftputil.FTPHost uses ftplib.FTP for the connection.
ftplib.FTP's connect method uses the socket module. The Python
documentation at http://docs.python.org/lib/module-socket.html says you
can use an IP address for connections. So the answer to your question
seems to be "yes".

Stefan


More information about the ftputil mailing list