FTP command: LIST

Source: Internet
Author: User
Tags ftp commands rfc ftp client ftp protocol

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

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.