FTP List format

后端 未结 3 869
孤街浪徒
孤街浪徒 2021-02-10 03:39

I\'m writing an embedded ftp server, and I cannot get the listing format correctly. The server works completely, only programs like FileZilla cannot interpret the listing format

3条回答
  •  栀梦
    栀梦 (楼主)
    2021-02-10 04:08

    The typical ftp server would shell out to ls -l for the directory listing. I believe this output contains space characters which align the output, not tab characters.

    The only way you can be certain as to why FileZilla is not parsing your directory listing is to get the open source for FileZilla and watch what is happening in the debugger. But I think you can make progress simply by duplicating the output of ls as exactly as possible, including whitespace.

提交回复
热议问题