list-only.d 1.1 KB

123456789101112131415161718192021222324252627282930
  1. c: Copyright (C) Daniel Stenberg, <daniel@haxx.se>, et al.
  2. SPDX-License-Identifier: curl
  3. Long: list-only
  4. Short: l
  5. Protocols: FTP POP3
  6. Help: List only mode
  7. Added: 4.0
  8. Category: ftp pop3
  9. Example: --list-only ftp://example.com/dir/
  10. See-also: quote request
  11. Multi: boolean
  12. ---
  13. (FTP)
  14. When listing an FTP directory, this switch forces a name-only view. This is
  15. especially useful if the user wants to machine-parse the contents of an FTP
  16. directory since the normal directory view does not use a standard look or
  17. format. When used like this, the option causes an NLST command to be sent to
  18. the server instead of LIST.
  19. Note: Some FTP servers list only files in their response to NLST; they do not
  20. include sub-directories and symbolic links.
  21. (POP3)
  22. When retrieving a specific email from POP3, this switch forces a LIST command
  23. to be performed instead of RETR. This is particularly useful if the user wants
  24. to see if a specific message-id exists on the server and what size it is.
  25. Note: When combined with --request, this option can be used to send a UIDL
  26. command instead, so the user may use the email's unique identifier rather than
  27. its message-id to make the request.