mirror of
https://github.com/curl/curl.git
synced 2024-12-21 06:50:10 +08:00
df45fd1794
gen.pl now insists on C: and SPDX-License-Identifier: fields to be present in all files. Closes #9002
19 lines
649 B
D
19 lines
649 B
D
c: Copyright (C) 1998 - 2022, Daniel Stenberg, <daniel@haxx.se>, et al.
|
|
SPDX-License-Identifier: curl
|
|
Long: create-file-mode
|
|
Arg: <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
|
|
Example: --create-file-mode 0777 -T localfile sftp://example.com/new
|
|
---
|
|
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 option takes an octal number as argument.
|
|
|
|
If this option is used several times, the last one will be used.
|