Introduction to FTP and ftplib

Let’s discuss File Transfer Protocol (FTP) and how it can be connected to the server, and how we can navigate directories with ftplib.

Overview

The File Transfer Protocol (FTP) is used by many companies and organizations for sharing data. Python provides a File Transfer Protocol module in its standard library called ftplib that implements the client side of the FTP protocol. We can learn all about the File Transfer Protocol by reading the RFC 959 document on the Internet. However the full specification is outside the scope of this chapter. Instead we will focus on the following topics:

  • Connecting to an FTP server
  • Navigating its structure
...
Access this course and 1400+ top-rated courses and projects.