我需要通過ftp上傳文件到主機。在主機上的根目錄中創建的/home2/travele2路徑 我可以通過FileZilla的程序上傳文件到主機,但是當我試圖通過網站上傳的文件,它使我這個錯誤: The remote server returned an error: (550) File unavailable (e.g., file not found, no access). 什麼問題是什麼?
使用Python 3.6.3。 我正在通過FTP_TLS連接到FTP以使用ftplib。 ftps = ftplib.FTP_TLS('example.com', timeout=5)
# TLS is more secure than SSL
ftps.ssl_version = ssl.PROTOCOL_TLS
# login before securing control chan