我是python的ftputil模塊的新手。我的Web服務器上有2個FTP帳戶。而只是想它,我遇到了兩個問題:
1.在登錄進去1,我可以進入有成功無法理解ftputil中的錯誤代碼
host = ftputil.FTPHost('ftp.mysite.com', 'user1', 'passwd1')
但每當我試圖登錄到另一個帳戶,它提出和錯誤:
ftputil.ftp_error.PermanentError: 530 Login incorrect.
但是,每次成功登錄時我都會遇到問題。我嘗試了用下面的命令列出目錄:
name=host.listdir(host.curdir)
而是顯示了目錄了,它提出了一個錯誤的東西還挺這樣的:
in _try_with_oserror
raise FTPOSError(*exc.args)
ftputil.ftp_error.FTPOSError: 110
Debugging info: ftputil 2.4.1, Python 2.7.3 (linux2)
什麼是錯我的編碼?
ftputil不是一個標準的庫模塊,它看起來(根據標籤的數量),就像幾乎沒人聽說過;所以鏈接會有幫助。無論如何,你是否嘗試閱讀文檔? –