file_chmod
host callCapy
function file_chmod(path : string, mode : s32) bool
Description
file_chmod changes the permission bits of a path.
Parameters
path : path of the file or directory
mode : Unix permission bits as a decimal s32
Return Values
true when Capy changes the mode. Otherwise, it returns false.
Example
Capy
file_put_contents("/tmp/doc-chmod.txt", "secret")
print(file_chmod("/tmp/doc-chmod.txt", 384), "\n")