Mac OS X
Components Crossplatform Mac & Win Server Client Old Guides Examples
New in version: 7.0 7.1 7.2 7.3 7.4 7.5 8.0 8.1 8.2 8.3 Statistic
Whether to create missing directories.
|Component||Version||macOS||Windows||Server||FileMaker Cloud||FileMaker iOS SDK|
|Handle||The CURL session handle.||$curl|
|Value||Whether to create missing directories. (1, 2 or 0)||2|
Returns "OK" on success.
DescriptionWhether to create missing directories.
Pass a number. If the value is 1, curl will attempt to create any remote directory that it fails to CWD into. CWD is the command that changes working directory.
This setting also applies to SFTP-connections. curl will attempt to create the remote directory if it can't obtain a handle to the target-location. The creation will fail if a file of the same name as the directory to create already exists or lack of permissions prevents creation.
Starting with 7.19.4, you can also set this value to 2, which will make libcurl retry the CWD command again if the subsequent MKD command fails. This is especially useful if you're doing many simultanoes connections against the same server and they all have this option enabled, as then CWD may first fail but then another connection does MKD before this connection and thus MKD fails but trying CWD works!
See also FTP_CREATE_MISSING_DIRS option in CURL manual.
Upload via FTP with creation of missing folders:
Upload via SFTP and create missing diretories:
Feedback: Report problem or ask question.
MBS FileMaker tutorial videos