create-file-mode.d 584 B

1234567891011121314151617
  1. c: Copyright (C) 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. Multi: single
  12. ---
  13. When curl is used to create files remotely using one of the supported
  14. protocols, this option allows the user to set which 'mode' to set on the file
  15. at creation time, instead of the default 0644.
  16. This option takes an octal number as argument.