Path.chmod

void chmod(uint mode) const

Changes 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

modeThe new permissions mode (e.g., octal 0o644).