2023-01-02 20:51:48 +08:00
|
|
|
c: Copyright (C) Daniel Stenberg, <daniel@haxx.se>, et al.
|
2022-06-14 06:12:03 +08:00
|
|
|
SPDX-License-Identifier: curl
|
2016-11-16 06:44:58 +08:00
|
|
|
Long: list-only
|
|
|
|
Short: l
|
|
|
|
Protocols: FTP POP3
|
|
|
|
Help: List only mode
|
2020-05-12 19:25:47 +08:00
|
|
|
Added: 4.0
|
2020-07-13 20:15:04 +08:00
|
|
|
Category: ftp pop3
|
2021-08-31 22:37:14 +08:00
|
|
|
Example: --list-only ftp://example.com/dir/
|
2021-11-15 22:58:20 +08:00
|
|
|
See-also: quote request
|
2022-10-18 16:39:43 +08:00
|
|
|
Multi: boolean
|
2016-11-16 06:44:58 +08:00
|
|
|
---
|
|
|
|
(FTP)
|
|
|
|
When listing an FTP directory, this switch forces a name-only view. This is
|
|
|
|
especially useful if the user wants to machine-parse the contents of an FTP
|
2021-10-31 23:34:44 +08:00
|
|
|
directory since the normal directory view does not use a standard look or
|
2021-07-19 09:51:43 +08:00
|
|
|
format. When used like this, the option causes an NLST command to be sent to
|
2016-11-16 06:44:58 +08:00
|
|
|
the server instead of LIST.
|
|
|
|
|
|
|
|
Note: Some FTP servers list only files in their response to NLST; they do not
|
|
|
|
include sub-directories and symbolic links.
|
|
|
|
|
|
|
|
(POP3)
|
|
|
|
When retrieving a specific email from POP3, this switch forces a LIST command
|
|
|
|
to be performed instead of RETR. This is particularly useful if the user wants
|
2021-07-19 09:51:43 +08:00
|
|
|
to see if a specific message-id exists on the server and what size it is.
|
2016-11-16 06:44:58 +08:00
|
|
|
|
2021-07-19 09:51:43 +08:00
|
|
|
Note: When combined with --request, this option can be used to send a UIDL
|
2016-11-16 06:44:58 +08:00
|
|
|
command instead, so the user may use the email's unique identifier rather than
|
2021-07-19 09:51:43 +08:00
|
|
|
its message-id to make the request.
|