Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update list-only.d adding SFTP as supported protocol #11628

Closed
wants to merge 3 commits into from
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
10 changes: 8 additions & 2 deletions docs/cmdline-opts/list-only.d
Expand Up @@ -2,10 +2,10 @@ 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
Expand All @@ -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
Expand Down