Maintenance Ruby 3.3 gets fixes, but no new features. Switch to Ruby 4.0 →
instance method
Pathname#chmod
pathname.chmod(mode_int) → integer
ext/pathname/pathname.c
View on GitHub ↗
static VALUE
path_chmod(VALUE self, VALUE mode)
{
return rb_funcall(rb_cFile, id_chmod, 2, mode, get_strpath(self));
}
Changes file permissions.
See File.chmod.