python ftp

Reference soruce: jihite, 2015

Quick start

from ftplib import FTP            # Loading the lib
ftp=FTP() # Assign to ftp
ftp.connect("IP","port") # Connected it
ftp.login("user","password") # Login
ftp.cwd("xxx/xxx") # cd command
ftp.nlst() # read the items in directory as list
Author

Karobben

Posted on

2020-01-22

Updated on

2024-01-11

Licensed under

Comments