1. Home
  2. Computing & Technology
  3. Python

Building an FTP Client in Python

From , former About.com Guide

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.

Explore Python
About.com Special Features

Holiday Central

What to eat, where to go, fun things to do and how to save money on the perfect gifts. More >

Family Tech Center

Stay connected and entertained with reviews on tips on the latest HDTVs, cellphones and more. More >

  1. Home
  2. Computing & Technology
  3. Python

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

All rights reserved.