xref: /aosp_15_r20/external/curl/docs/cmdline-opts/create-file-mode.md (revision 6236dae45794135f37c4eb022389c904c8b0090d)
1*6236dae4SAndroid Build Coastguard Worker---
2*6236dae4SAndroid Build Coastguard Workerc: Copyright (C) Daniel Stenberg, <[email protected]>, et al.
3*6236dae4SAndroid Build Coastguard WorkerSPDX-License-Identifier: curl
4*6236dae4SAndroid Build Coastguard WorkerLong: create-file-mode
5*6236dae4SAndroid Build Coastguard WorkerArg: <mode>
6*6236dae4SAndroid Build Coastguard WorkerHelp: File mode for created files
7*6236dae4SAndroid Build Coastguard WorkerProtocols: SFTP SCP FILE
8*6236dae4SAndroid Build Coastguard WorkerCategory: sftp scp file upload
9*6236dae4SAndroid Build Coastguard WorkerAdded: 7.75.0
10*6236dae4SAndroid Build Coastguard WorkerMulti: single
11*6236dae4SAndroid Build Coastguard WorkerSee-also:
12*6236dae4SAndroid Build Coastguard Worker  - ftp-create-dirs
13*6236dae4SAndroid Build Coastguard WorkerExample:
14*6236dae4SAndroid Build Coastguard Worker  - --create-file-mode 0777 -T localfile sftp://example.com/new
15*6236dae4SAndroid Build Coastguard Worker---
16*6236dae4SAndroid Build Coastguard Worker
17*6236dae4SAndroid Build Coastguard Worker# `--create-file-mode`
18*6236dae4SAndroid Build Coastguard Worker
19*6236dae4SAndroid Build Coastguard WorkerWhen curl is used to create files remotely using one of the supported
20*6236dae4SAndroid Build Coastguard Workerprotocols, this option allows the user to set which 'mode' to set on the file
21*6236dae4SAndroid Build Coastguard Workerat creation time, instead of the default 0644.
22*6236dae4SAndroid Build Coastguard Worker
23*6236dae4SAndroid Build Coastguard WorkerThis option takes an octal number as argument.
24