class method
File.lchmod
(::int mode, *::string | ::_ToPath file_name) -> ::Integer
File.lchmod(mode_int, file_name, ...) → integer
file.c
View on GitHub ↗
static VALUE
rb_file_s_lchmod(int argc, VALUE *argv, VALUE _)
{
mode_t mode;
apply2args(1);
mode = NUM2MODET(*argv++);
return apply2files(lchmod_internal, argc, argv, &mode);
}
Equivalent to File::chmod, but does not follow symbolic links (so it will change the permissions associated with the link, not the file referenced by the link). Often not available.