The 1.LIST command lists subdirectories and file information in the specified directory, and defaults to listing all subdirectories and file information under the current directory and returning to the client if no directory name is specified.
--If the path name specifies a directory name, the server sends a list of subdirectories and file listings in the specified directory
--If the path name specifies a file, the server sends information about the file
2. When you recently wrote an FTP client program with VS2005, you found a problem: Different FTP servers are formatted differently from the list of response file information for the List command. In this case, the client should first judge the format when it processes the returned file information list.
3.rfc-959 inside about the list is said (Http://www.rfc-editor.org/rfc/rfc959.txt):
Here should be very clear: the different system returns the file information list of different formats, to be treated differently, hehe
Here's a note about NLST in RFC-959:
4. In the following Web site has very detailed information on the FTP
Http://cr.yp.to/ftp/list.html here the author in the above aspects of the list and Nlst explain quite detailed, must see OH
Http://cr.yp.to/ftp.html Here the author introduces many aspects of the FTP protocol
Http://cr.yp.to/ftpparse.html here the author uses C + + to write a more general, running on a variety of OS, can resolve a variety of FTP server to the List command Response information module
Http://cr.yp.to/ftp/list/binls.html here the author introduces the most common list format (the format of the FTP server's response information to the List command)--/bin/ls format
Http://cr.yp.to/ftp/list/eplf.html Here the author has designed a list format, that is, EPLF (easily parsed list format)
Other Web resources:
Http://www.nsftools.com/tips/RawFTP.htm#LIST contains all the FTP commands and simple explanations