list - FTP LIST命令返回的数据格式?

标签 list ftp command format

我正在编写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/

相关文章:

list - 如何在 Redis 中一次弹出多个列表

mysql - 项目列表的数据库结构(非常不同)

python - 如何在python中匹配字符串后获取列表中的所有元素

ftp - 通过 Internet 共享文件 - WebDAV/SMB/FTP

linux - dd命令调整文件系统

c# - 使用来自 2 个不同线程的列表?

compact-framework - OpenCF.FTP 的替代方案 - 稳定

java - Quartz 作业已完成但线程仍处于阻塞状态

VIM 将当前行作为 VIM 命令执行

wpf - 在 DataTemplate 中为 MenuItem 指定命令