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