master-server/deps/curl/docs/cmdline-opts/create-file-mode.md
2024-05-15 15:20:32 -04:00

621 B

c SPDX-License-Identifier Long Arg Help Protocols Category Added Multi See-also Example
Copyright (C) Daniel Stenberg, <daniel@haxx.se>, 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.