chmod(*args)
public
Changes permission bits on the named file(s) to the bit pattern represented
by mode_int. Actual effects are operating system dependent (see
the beginning of this section). On Unix systems, see chmod(2) for details. Returns the number of
files processed.
File.chmod(0644, "testfile", "out")
Show source
static VALUE
rb_file_s_chmod(int argc, VALUE *argv)
{
int mode;
apply2args(1);
mode = NUM2INT(*argv++);
return apply2files(chmod_internal, argc, argv, &mode);
}