HDK
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
UT_ChmodACL.h File Reference
#include "UT_API.h"
+ Include dependency graph for UT_ChmodACL.h:

Go to the source code of this file.

Functions

UT_API int UTchmodACL (const char *path, unsigned int mode)
 

Function Documentation

UT_API int UTchmodACL ( const char *  path,
unsigned int  mode 
)

A version of chmod() that directly manipulates ACLs on supported OSes

Currently only implemented on Windows and is compatible with cygwin chmod. Note that the CRT chmod() (and therefore os.chmod() in hython) only modify the Read Only file attribute. So if you use this to remove write permission, those other functions won't work anymore.

On all other platforms, defaults to regular chmod()

Returns
0 on success, -1 on error