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: ftp-method
|
|
|
|
Arg: <method>
|
|
|
|
Help: Control CWD usage
|
|
|
|
Protocols: FTP
|
|
|
|
Added: 7.15.1
|
2020-07-13 20:15:04 +08:00
|
|
|
Category: ftp
|
2021-08-31 22:37:14 +08:00
|
|
|
Example: --ftp-method multicwd ftp://example.com/dir1/dir2/file
|
|
|
|
Example: --ftp-method nocwd ftp://example.com/dir1/dir2/file
|
|
|
|
Example: --ftp-method singlecwd ftp://example.com/dir1/dir2/file
|
2021-11-15 22:58:20 +08:00
|
|
|
See-also: list-only
|
2022-10-18 16:39:43 +08:00
|
|
|
Multi: single
|
2016-11-16 06:44:58 +08:00
|
|
|
---
|
|
|
|
Control what method curl should use to reach a file on an FTP(S)
|
|
|
|
server. The method argument should be one of the following alternatives:
|
|
|
|
.RS
|
|
|
|
.IP multicwd
|
|
|
|
curl does a single CWD operation for each path part in the given URL. For deep
|
2021-11-01 20:43:11 +08:00
|
|
|
hierarchies this means many commands. This is how RFC 1738 says it should
|
2016-11-16 06:44:58 +08:00
|
|
|
be done. This is the default but the slowest behavior.
|
|
|
|
.IP nocwd
|
|
|
|
curl does no CWD at all. curl will do SIZE, RETR, STOR etc and give a full
|
|
|
|
path to the server for all these commands. This is the fastest behavior.
|
|
|
|
.IP singlecwd
|
|
|
|
curl does one CWD with the full target directory and then operates on the file
|
2022-08-23 19:42:49 +08:00
|
|
|
"normally" (like in the multicwd case). This is somewhat more standards
|
2016-11-16 06:44:58 +08:00
|
|
|
compliant than 'nocwd' but without the full penalty of 'multicwd'.
|
|
|
|
.RE
|
2023-06-22 21:08:57 +08:00
|
|
|
.IP
|