1. The LIST command is used to list sub-directories and file information in a specified directory. If no directory name is specified, all sub-directories and file information in the current directory are listed by default and returned to the client.
-- If the path name specifies a directory name, the server sends a list of subdirectories and files in the specified directory.
-- If the path name specifies a file, the server sends the file information.
2. I recently used vs2005 to write an FTP client.ProgramThe following error occurs: Different FTP servers have different formats for the LIST command response file information list. In this case, the client must first determine the format when processing the returned file information list.
3. The RFC-959 inside about list is said like this (http://www.rfc-editor.org/rfc/rfc959.txt ):
It should be quite clear here: the list of file information returned by different systems is in different formats and should be treated differently.
This is the description of nlst in the RFC-959:
4. the following website contains detailed FTP information.
Http://cr.yp.to/ftp/list.htmlHere, I have explained the list and NLST in detail in the above aspects. You must take a look.
Here, the author of http://cr.yp.to/ftp.htmlintroduces many aspects of ftp's agreement.
Bytes
Http://cr.yp.to/ftp/list/binls.htmlHere, the author introduces the most common list format (the FTP server's response to the list Command) --/bin/ls format
Http://cr.yp.to/ftp/list/eplf.htmlthe author designed a list format, that is, EPLF (easily parsed List format)
Other website resources:
Http://www.nsftools.com/tips/rawftp.htm?listcontaining full ftpcommand