aboutsummaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorJames Housley <jim@thehousleys.net>2007-06-27 20:15:48 +0000
committerJames Housley <jim@thehousleys.net>2007-06-27 20:15:48 +0000
commit4cd7f85410ae9590fa4dd274a9c77604b3b8d4fc (patch)
treefd45dc75b67be9ca91e816485e959eb1fceb8621 /include
parentedd35cab5cbe0872b19b98936b58e4941c93de12 (diff)
Add two new options for the SFTP/SCP/FILE protocols: CURLOPT_NEW_FILE_PERMS
and CURLOPT_NEW_DIRECTORY_PERMS. These control the premissions for files and directories created on the remote server. CURLOPT_NEW_FILE_PERMS defaults to 0644 and CURLOPT_NEW_DIRECTORY_PERMS defaults to 0755
Diffstat (limited to 'include')
-rw-r--r--include/curl/curl.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/include/curl/curl.h b/include/curl/curl.h
index 000335b74..2dbcfd737 100644
--- a/include/curl/curl.h
+++ b/include/curl/curl.h
@@ -1076,6 +1076,11 @@ typedef enum {
CINIT(HTTP_TRANSFER_DECODING, LONG, 157),
CINIT(HTTP_CONTENT_DECODING, LONG, 158),
+ /* Permission used when creating new files and directories on the remote
+ server for protocols that support it, SFTP/SCP/FILE */
+ CINIT(NEW_FILE_PERMS, LONG, 159),
+ CINIT(NEW_DIRECTORY_PERMS, LONG, 160),
+
CURLOPT_LASTENTRY /* the last unused */
} CURLoption;