# How to use FTP in Python?

PythonServer Side ProgrammingProgramming

You can use the ftplib module in Python. It allows you to write programs that perform a variety of automated FTP jobs. You can easily connect to a FTP server to retrieve files and process them locally.

## example

import ftplib
ftp.cwd("/tmp") #change working directory to /tmp