Method: Pathname#mkdir

Defined in:
pathname.c

#mkdir(*args) ⇒ Object

Create the referenced directory.

See Dir.mkdir.



1227
1228
1229
1230
1231
1232
1233
1234
1235
1236
# File 'pathname.c', line 1227

static VALUE
path_mkdir(int argc, VALUE *argv, VALUE self)
{
    VALUE str = get_strpath(self);
    VALUE vmode;
    if (rb_scan_args(argc, argv, "01", &vmode) == 0)
        return rb_funcall(rb_cDir, id_mkdir, 1, str);
    else
        return rb_funcall(rb_cDir, id_mkdir, 2, str, vmode);
}