ANSWERS: 1
  • Use the ftplib module. Here's an example: from ftplib import FTP ftp = FTP('website.com') ftp.retrlines('LIST') ftp.quit() That will connect to website.com's FTP, list the files and folders, and then exit.

Copyright 2023, Wired Ivy, LLC

Answerbag | Terms of Service | Privacy Policy