mirror of
https://github.com/curl/curl.git
synced 2026-08-05 02:16:13 +03:00
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:
parent
e1a4647a42
commit
a7696c7343
10 changed files with 49 additions and 4 deletions
|
|
@ -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 \
|
||||
|
|
|
|||
12
docs/cmdline-opts/create-file-mode.d
Normal file
12
docs/cmdline-opts/create-file-mode.d
Normal 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.
|
||||
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue