End of Life Ruby 3.0 has reached end of life and gets no more fixes. Switch to Ruby 4.0 →
instance method
Pathname#chown
pathname.chown(owner_int, group_int) → integer
ext/pathname/pathname.c
View on GitHub ↗
static VALUE
path_chown(VALUE self, VALUE owner, VALUE group)
{
return rb_funcall(rb_cFile, id_chown, 3, owner, group, get_strpath(self));
}
Change owner and group of the file.
See File.chown.