Path.chmod
void chmod(uint mode) constChanges file permissions.
Platform semantics:
- POSIX: Uses
chmod(2)to set permission bits on the target, following symlinks. - Windows: No POSIX permissions; this method is a no-op (documented) to keep
API parity. Consider using Windows ACL APIs directly if you need fine control.
Parameters
mode | The new permissions mode (e.g., octal 0o644). |