1---
2c: Copyright (C) Daniel Stenberg, <daniel@haxx.se>, et al.
3SPDX-License-Identifier: curl
4Long: create-file-mode
5Arg: <mode>
6Help: File mode for created files
7Protocols: SFTP SCP FILE
8Category: sftp scp file upload
9Added: 7.75.0
10Multi: single
11See-also:
12  - ftp-create-dirs
13Example:
14  - --create-file-mode 0777 -T localfile sftp://example.com/new
15---
16
17# `--create-file-mode`
18
19When curl is used to create files remotely using one of the supported
20protocols, this option allows the user to set which 'mode' to set on the file
21at creation time, instead of the default 0644.
22
23This option takes an octal number as argument.
24