2
0

list-only.d 1.4 KB

123456789101112131415161718192021222324252627282930313233343536
  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 SFTP
  6. Help: List only mode
  7. Added: 4.0
  8. Category: ftp pop3 sftp
  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. (SFTP)
  22. When listing an SFTP directory, this switch forces a name-only view, one per line.
  23. This is especially useful if the user wants to machine-parse the contents of an
  24. SFTP directory since the normal directory view provides more information than just
  25. file names.
  26. (POP3)
  27. When retrieving a specific email from POP3, this switch forces a LIST command
  28. to be performed instead of RETR. This is particularly useful if the user wants
  29. to see if a specific message-id exists on the server and what size it is.
  30. Note: When combined with --request, this option can be used to send a UIDL
  31. command instead, so the user may use the email's unique identifier rather than
  32. its message-id to make the request.