我正在运行 twistd -n ftp --root=/tmp --password-file=/tmp/pass.dat
我可以连接 ftp ftp://localhost:2121
并运行 ls
。但是,如果我登录并尝试相同的 ls
,则会收到以下错误:
550 []: No such file or directory.
有什么想法吗?
谢谢,三木
最佳答案
我遇到了同样的问题,直到我在 bugtracer 中发现这个:http://twistedmatrix.com/trac/ticket/4494 这段代码
avatar = FTPShell(filepath.FilePath("/home/" + avatarId))
意味着您的 FTP 登录名应该与您的 Linux 登录名相同,这样“/home/login”目录就会存在。
关于python - Twisted FTP 服务器在登录后不显示文件,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/18412503/