class Dir
Public Class Methods
size(p1)
click to toggle source
static VALUE rb_get_size(VALUE rb_self, VALUE rb_path) { unsigned long lsize; Check_Type(rb_path, T_STRING); if (get_size(StringValueCStr(rb_path), &lsize) == -1) rb_raise(rb_eRuntimeError, "Dir.size error: %s", strerror(errno)); else return ULONG2NUM(lsize); }