diff options
Diffstat (limited to 'docs/cmdline-opts/list-only.d')
-rw-r--r-- | docs/cmdline-opts/list-only.d | 12 |
1 files changed, 9 insertions, 3 deletions
diff --git a/docs/cmdline-opts/list-only.d b/docs/cmdline-opts/list-only.d index d84974f49..dcfbf2ccc 100644 --- a/docs/cmdline-opts/list-only.d +++ b/docs/cmdline-opts/list-only.d @@ -1,11 +1,11 @@ -c: Copyright (C) 1998 - 2022, Daniel Stenberg, <daniel@haxx.se>, et al. +c: Copyright (C) Daniel Stenberg, <daniel@haxx.se>, et al. SPDX-License-Identifier: curl Long: list-only Short: l -Protocols: FTP POP3 +Protocols: FTP POP3 SFTP Help: List only mode Added: 4.0 -Category: ftp pop3 +Category: ftp pop3 sftp Example: --list-only ftp://example.com/dir/ See-also: quote request Multi: boolean @@ -20,6 +20,12 @@ 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. +(SFTP) +When listing an SFTP directory, this switch forces a name-only view, one per line. +This is especially useful if the user wants to machine-parse the contents of an +SFTP directory since the normal directory view provides more information than just +file names. + (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 |