mirror of
https://github.com/curl/curl.git
synced 2026-07-30 23:18:08 +03:00
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
This commit is contained in:
parent
edd35cab5c
commit
4cd7f85410
7 changed files with 63 additions and 27 deletions
|
|
@ -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;
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue