create-file-mode.d 547 B

12345678910111213141516
  1. Long: create-file-mode
  2. Arg: <mode>
  3. Help: File mode for created files
  4. Protocols: SFTP SCP FILE
  5. Category: sftp scp file upload
  6. See-also: ftp-create-dirs
  7. Added: 7.75.0
  8. Example: --create-file-mode 0777 -T localfile sftp://example.com/new
  9. ---
  10. When curl is used to create files remotely using one of the supported
  11. protocols, this option allows the user to set which 'mode' to set on the file
  12. at creation time, instead of the default 0644.
  13. This option takes an octal number as argument.
  14. If this option is used several times, the last one will be used.