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