我需要通过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