我正在编写FTP服务器,但是对于以什么格式发送文件列表有些困惑。
使用2个终端和一个FTP客户端,我能够通过一个简单的FTP交换运行。但是,我不太确定以哪种格式发送文件列表。
是否有一些可接受的格式?我应该使用哪些列?
最佳答案
这是RFC必须说的:
The data transfer is over the data connection in type ASCII or type EBCDIC. (The user must ensure that the TYPE is appropriately ASCII or EBCDIC). Since the information on a file may vary widely from system to system, this information may be hard to use automatically in a program, but may be quite useful to a human user.
因此,预期结果不会被自动解析。
关于list - FTP LIST命令返回的数据格式?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/4564603/