list-only.d 1.1 KB

1234567891011121314151617181920212223242526272829
  1. c: Copyright (C) 1998 - 2022, 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. ---
  12. (FTP)
  13. When listing an FTP directory, this switch forces a name-only view. This is
  14. especially useful if the user wants to machine-parse the contents of an FTP
  15. directory since the normal directory view does not use a standard look or
  16. format. When used like this, the option causes an NLST command to be sent to
  17. the server instead of LIST.
  18. Note: Some FTP servers list only files in their response to NLST; they do not
  19. include sub-directories and symbolic links.
  20. (POP3)
  21. When retrieving a specific email from POP3, this switch forces a LIST command
  22. to be performed instead of RETR. This is particularly useful if the user wants
  23. to see if a specific message-id exists on the server and what size it is.
  24. Note: When combined with --request, this option can be used to send a UIDL
  25. command instead, so the user may use the email's unique identifier rather than
  26. its message-id to make the request.