Page 1 of 1

control of File List sort order

Posted: 2019-05-11 17:52
by allenbi
I am using FileZilla FTP Server to support a manufacturing environment. The client side of the arrangement is in PLC control based FTP clients. To the best of my knowledge, these have no way to provide options for changing the sort order of file lists in the way one might from a DOS prompt FTP connection by providing parameters to the ls or dir commands. Is there a way from the FileZilla server configuration to control the output sort order that a client would see when a listing of files is requested, or is that strictly dependent on the ftp client capabilities? I believe it is the later, but need to confirm this one way or the other. Thanks for any feedback on this. :)

Best Regards
allenbi

Re: control of File List sort order

Posted: 2019-05-11 21:19
by boco
It's the latter. The server sends the list as the OS API puts them out, the client is supposed to sort it. There is no guaranteed order of files in the lists sent by an FTP server.

Re: control of File List sort order

Posted: 2019-05-11 21:45
by allenbi
Ok, thanks for confirmation of that. It is what I thought.

Best Regards,
allenbi

Re: control of File List sort order

Posted: 2019-05-13 06:58
by botg
Assuming the server would do the sorting, what would be the correct sorting anyhow? It is highly locale-specific, varying from language to language and country to country. This is why it needs to be done client-side, the server simply cannot know where the client is located.