:sig
function file_chmod(path : string, mode : s32) bool

:params
path : path of the file or directory
mode : Unix permission bits as a decimal `s32`

:returns
`true` when Capy changes the mode. Otherwise, it returns `false`.

:content
`file_chmod` changes the permission bits of a path.

:example capy render
file_put_contents("/tmp/doc-chmod.txt", "secret")
print(file_chmod("/tmp/doc-chmod.txt", 384), "\n")

:see-group
files

:see
file_fsync
