test_directory_permission()
#
Test if a directory has the specified permissions.
Prototype
PUBLIC int test_directory_permission(
const char *path,
int mode
);
Parameters
Key |
Type |
Description |
---|---|---|
|
|
The path to the directory. |
|
|
The permission mode to check (e.g., readable, writable). |
Return Value
Returns 0
if the directory has the specified permissions, or a negative value otherwise.
Prototype
// Not applicable in JS
Prototype
# Not applicable in Python
Examples
// TODO C examples
// TODO JS examples
# TODO Python examples