LIST corresponds to a full directory list, including file sizes and dates. NLST is the shorter 'name list' which only gives names. Apparently none of the clients or people connecting use the 'ls' command (or the equivalent) to get the abbreviated name list. Interesting, but not important.
Mike
Not always; I did see it a couple of times in the browsers.You would see the prompt on a command line client. The prompt is going to the browser too, but it's ignoring it.
Did the ls command work on the last test? I use FTP all the time so typing ls is not even a concious action, and I'm sure I did it over and over. Anyway, the last quarter hour I've been trying a bunch of clients and finally had the sense to ping. It seems the server is down.
Have you taken into account other reserved device names like AUX: NUL: PRN:, etc.? I'm sure there are more than that. I remember back in the day that attempting to read or write to a file of those names could cause programs to fail or lock up.But Chuck caught me on device names like CON: and CLOCK:...
Have you taken into account other reserved device names like AUX: NUL: PRN:, etc.? I'm sure there are more than that. I remember back in the day that attempting to read or write to a file of those names could cause programs to fail or lock up.
Steve
ftp> type aol.txt
aol.txt: unknown mode
The LS command (NLST under the covers) works the same way as the DIR command (LIST under the covers). So if LS requires passive mode, then DIR requires passive mode too. And so will any file transfer.
Now, here is an interesting twist - there is a 'STAT' command in the FTP spec. STAT without parameters gives you the server status. (Try QUOTE STAT in your client to see the output.) The STAT command with a parameter though gives you the equivalent of a DIR, except it doesn't require another data connection - it just sends the data through the control connection. Consider it a backup to the standard DIR command that you can use when PORT or PASSIVE are not working. (Although PASSIVE should just about always work.)