Skip to content

Latest commit

 

History

History
23 lines (20 loc) · 621 Bytes

create-file-mode.md

File metadata and controls

23 lines (20 loc) · 621 Bytes
c SPDX-License-Identifier Long Arg Help Protocols Category Added Multi See-also Example
Copyright (C) Daniel Stenberg, <[email protected]>, et al.
curl
create-file-mode
<mode>
File mode for created files
SFTP SCP FILE
sftp scp file upload
7.75.0
single
ftp-create-dirs
--create-file-mode 0777 -T localfile sftp://example.com/new

--create-file-mode

When curl is used to create files remotely using one of the supported protocols, this option allows the user to set which 'mode' to set on the file at creation time, instead of the default 0644.

This option takes an octal number as argument.