Class: Dir
- Inherits:
-
Object
- Object
- Dir
- Defined in:
- (unknown)
Class Method Summary collapse
Class Method Details
.size(rb_path) ⇒ Object
27 28 29 30 31 32 33 34 |
# File 'ext/dir_size/dir_size.c', line 27
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);
}
|