ftplib progress bar

2019-07-29 10:20发布

When I run the script it closes the terminal. I want to print and display a message and also to see that it has completed. Maybe a status bar?

import ftplib
from ftplib import FTP

ftp_add =  input('ftp address:')
username = input('username:')
password = input('password:')


ftp = FTP(ftp_add)
ftp.login(username, password)
ftp.retrlines('LIST')
ftp.cwd("/public_html")
file_list = []
filenames = ftp.nlst()


ftp.close() 

标签: python ftplib
0条回答
登录 后发表回答