std.fs.chmod

std.fs

chmod(path, mode) -> ok, err

Change file mode bits

Changes the permission bits of the file at path. Mode is an octal string (e.g. "0755"). Returns nil and an error string on failure.