ftp时出现Python EOF错误

时间:2017-11-23 00:26:48

标签: python ftp eof

昨天当我开始工作时这很好。

    from ftplib import FTP

ftp = FTP('files.000webhost.com')
ftp.login(user='', passwd='')
ftp.cwd('/public_html')


def homeDrop():
    filename = 'iframe.html'
    ftp.storbinary('STOR ' + filename, open(filename, 'rb'))
    ftp.rename(filename, "home.html")
    ftp.quit()


homeDrop()

假设:可能只是ftp服务器速度慢导致此问题,因为这是唯一的动态变量。没有其他明显的错误。

0 个答案:

没有答案
相关问题