FTP command: List

Source: Internet
Author: User
Tags ftp client

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

 

 

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.