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