End of Life Ruby 3.0 has reached end of life and gets no more fixes. Switch to Ruby 4.0 →
instance method
Pathname#lchmod
pathname.lchmod(mode_int) → integer
ext/pathname/pathname.c
View on GitHub ↗
static VALUE
path_lchmod(VALUE self, VALUE mode)
{
return rb_funcall(rb_cFile, id_lchmod, 2, mode, get_strpath(self));
}
Same as Pathname.chmod, but does not follow symbolic links.
See File.lchmod.