create-file-mode.d 649 B

123456789101112131415161718
  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. ---
  12. When curl is used to create files remotely using one of the supported
  13. protocols, this option allows the user to set which 'mode' to set on the file
  14. at creation time, instead of the default 0644.
  15. This option takes an octal number as argument.
  16. If this option is used several times, the last one will be used.