On Tue, Oct 30, 2018 at 8:27 AM Rob Berendt <rob@xxxxxxxxx> wrote:
What makes me think it would? Well, any of the standard sites or man
pages one would research to find the options on the ls command show
various options. That is what makes me think so.
I think the more fundamental question is: Why do you think the ls
command has anything to do with FTP at all? FTP is its own thing. The
ls command is its own thing. Systems without an ls command at all can
still implement an FTP server. The FTP protocol has its own
requirements for what needs to be returned when a client issues the
LIST command, or the newer MLSD command.
Note that the commands you type into an FTP client need not be the
same as what the server receives from the client. The FTP protocol
doesn't define anything called "get" or "put" for example. What it
DOES define are RETR and STOR:
https://en.wikipedia.org/wiki/List_of_FTP_commands
I suppose it's possible that a given FTP server implementation might,
under the covers, issue a call to the system's ls command, if it has
one. And *if* it did such a thing, it would use whatever ls options
are required to retrieve the information needed for LIST or MLSD. And
in any case, these options would be fixed and not accessible to the
FTP client.
I don't know the inner workings of any particular FTP server, but I
strongly suspect that it is NOT typical for the server to rely on the
system's ls command, even on systems that have an ls.
John Y.
As an Amazon Associate we earn from qualifying purchases.