I would like to make a script to upload a file to FTP.
How would the login system work? I’m looking for something like this:
ftp.login=(mylogin)
ftp.pass=(mypass)
And any other sign in credentials.
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
Use
ftplib, you can write it like this:Use
ftplib.FTP_TLSinstead if you FTP host requires TLS.To retrieve it, you can use
urllib.retrieve:EDIT:
To find out the current directory, use
FTP.pwd():To change the directory, use
FTP.cwd(pathname):