Topics   All   Mac OS X (Only)   Windows (Only)   Linux (Only, Not)   iOS (Only, Not)  
Components   Crossplatform Mac & Win   Server (Not)   Client   Old   Guides   Examples
New in version: 6.1   6.2   6.3   6.4   6.5   7.0   7.1   7.2   7.3   7.4    Statistic  

CURL.SetOptionNewFilePerms

Sets the new file permissions.

Component Version macOS Windows Server FileMaker Cloud FileMaker iOS SDK
CURL 2.5 Yes Yes Yes Yes Yes

MBS( "CURL.SetOptionNewFilePerms"; Handle; Value )

Parameters

Parameter Description Example value
Handle The CURL session handle. $curl
Value The permissions value. (octal value!) 8*8*6+4+8+4

Result

Returns "OK" on success.

Description

Sets the new file permissions.
Pass a number as parameter, containing the value of the permissions that will be assigned to newly created files on the remote server. The default value is 0644, but any valid value can be used. The only protocols that can use this are sftp://, scp://, and file://.
Values are specified in octal, so octal 755 is decimal 493. Octal 644 is 420 (6*8*8+4*8+4).

See also


CURL.SetOptionNewDirectoryPerms   -   CURL.SetOptionNoBody

Feedback: Report problem or ask question.




Links
MBS Xojo tutorial videos