1. Home
  2. Computing & Technology
  3. Python

Building an FTP Client in Python

By Al Lukaszewski, About.com

4 of 6

Logging Into the FTP Server

Having created the socket connection, we still need to log into the server. Fortunately, the FTP class also holds a method for logging into the server.

ftp.login("mylogin", "mypassword1")

Here we call the login with respect to the FTP object 'ftp'. Doing this manually gives one more overt control of which account object is active when.

Next, we can actively interact with the server.

4 of 6

Explore Python

More from About.com

  1. Home
  2. Computing & Technology
  3. Python

©2008 About.com, a part of The New York Times Company.

All rights reserved.