curl: add --create-file-mode [mode]

This option sets the (octal) mode to use for the remote file when one is
created, using the SFTP, SCP or FILE protocols. When not set, the
default is 0644.

Closes #6244
This commit is contained in:
Daniel Stenberg 2020-12-20 18:44:20 +01:00
parent e1a4647a42
commit a7696c7343
No known key found for this signature in database
GPG key ID: 5CC908FDB71E12C2
10 changed files with 49 additions and 4 deletions

View file

@ -40,6 +40,7 @@ DPAGES = \
cookie-jar.d \
cookie.d \
create-dirs.d \
create-file-mode.d \
crlf.d crlfile.d \
curves.d \
data-ascii.d \

View file

@ -0,0 +1,12 @@
Long: create-file-mode
Help: File mode for created files
Protocols: SFTP SCP FILE
Category: sftp scp file upload
See-also: ftp-create-dirs
Added: 7.75.0
---
When curl is used to create files remotely using one of the supported
protocols, this option allows the user to set which 'mode' to set on the file
at creation time, instead of the default 0644.
This options takes an octal number as argument.

View file

@ -30,6 +30,7 @@
--cookie (-b) 4.9
--cookie-jar (-c) 7.9
--create-dirs 7.10.3
--create-file-mode 7.75.0
--crlf 5.7
--crlfile 7.19.7
--curves 7.73.0