]> granicus.if.org Git - curl/commitdiff
Update documentation to reflect SFTP's ability to create directories on
authorJames Housley <jim@thehousleys.net>
Wed, 13 Jun 2007 15:02:34 +0000 (15:02 +0000)
committerJames Housley <jim@thehousleys.net>
Wed, 13 Jun 2007 15:02:34 +0000 (15:02 +0000)
upload.  Some text provieded by Tom Regner

docs/curl.1
docs/libcurl/curl_easy_setopt.3

index fbe8155d1160b4e6627d79abeb1aaedb2b78c8b6..629f99dc7933d1a66b6a5bb88d2b84b49a322094 100644 (file)
@@ -216,7 +216,8 @@ local directory hierarchy as needed. This option creates the dirs mentioned
 with the -o option, nothing else. If the -o file name uses no dir or if the
 dirs it mentions already exist, no dir will be created.
 
-To create remote directories when using FTP, try \fI--ftp-create-dirs\fP.
+To create remote directories when using FTP or SFTP, try 
+\fI--ftp-create-dirs\fP.
 .IP "--crlf"
 (FTP) Convert LF to CRLF in upload. Useful for MVS (OS/390).
 
@@ -382,7 +383,7 @@ has been provided, this data is sent off using the ACCT command. (Added in
 
 If this option is used twice, the second will override the previous use.
 .IP "--ftp-create-dirs"
-(FTP) When an FTP URL/operation uses a path that doesn't currently exist on
+(FTP) When an FTP or SFTP URL/operation uses a path that doesn't currently exist on
 the server, the standard behavior of curl is to fail. Using this option, curl
 will instead attempt to create missing directories.
 
index a3149995866427b7246245d994cdd48def809a8f..72b4cdbdd8a0cd94c072c070756bbf0e679475b9 100644 (file)
@@ -890,6 +890,11 @@ If the server is an IPv6 host, this option will have no effect as of 7.12.3.
 Pass a long. If the value is non-zero, curl will attempt to create any remote
 directory that it fails to CWD into. CWD is the command that changes working
 directory. (Added in 7.10.7)
+
+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. (Added in 7.16.3)
 .IP CURLOPT_FTP_RESPONSE_TIMEOUT
 Pass a long.  Causes curl to set a timeout period (in seconds) on the amount
 of time that the server is allowed to take in order to generate a response