I am writing FTP client that should work for at least Windows and Linux FTPs. BUt before I proceed, I want answer to these questions.
ls -lt
command is used for the FTP server on the Linux?ls -lt
command is used for the FTP server on the Windows?Note: I tried command on Windows and Linux FTP servers but I could not figure out any specific logic/format.
ls
is a client command. When your client gets ls -lt
from the user, you issue a LIST
command to the server and it's up to your client to parse the data returned and sort it by time. The data returned by the ftp server when you use the LIST
command is similar to the output of ls
, but it can vary from server to server. See: http://cr.yp.to/ftp/list.html
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With