Topics
All
MacOS
(Only)
Windows
(Only)
Linux
(Only, Not)
iOS
(Only, Not)
Components
Crossplatform Mac & Win
Server
Client
Old
Deprecated
Guides
Examples
Videos
New in version:
10.1
10.2
10.3
10.4
10.5
11.0
11.1
11.2
11.3
11.4
Statistic
FMM
Blog
Which command to use for reaching a file.
Component | Version | macOS | Windows | Linux | Server | iOS SDK |
CURL | 2.5 | ✅ Yes | ✅ Yes | ✅ Yes | ✅ Yes | ✅ Yes |
Parameter | Description | Example |
---|---|---|
curl | The CURL session handle. | $curl |
Value | Which CWD command to use. | 0 |
Returns "OK" on success.
Default | 0 | default |
Multi CWD | 1 | libcurl does a single CWD operation for each path part in the given URL. For deep hierarchies this means many commands. This is how RFC 1738 says it should be done. This is the default but the slowest behavior. |
No CWD | 2 | libcurl does no CWD at all. libcurl will do SIZE, RETR, STOR etc and give a full path to the server for all these commands. This is the fastest behavior. |
Single CWD | 3 | libcurl does one CWD with the full target directory and then operates on the file "normally" (like in the multicwd case). This is somewhat more standards compliant than 'nocwd' but without the full penalty of 'multicwd'. |
See also FTP_FILEMETHOD option in CURL manual.
Use single CWD command:
MBS( "CURL.SetOptionFTPFileMethod"; $curl; 3 )
Created 18th August 2014, last changed 16th November 2017
CURL.SetOptionFTPCreateMissingDirs - CURL.SetOptionFTPPort
Feedback: Report problem or ask question.