blocks()
public
Returns the number of native file system blocks allocated for this file, or nil if
the operating system doesn’t support this feature.
File.stat("testfile").blocks
static VALUE
rb_stat_blocks(VALUE self)
{
#ifdef HAVE_ST_BLOCKS
return ULONG2NUM(get_stat(self)->st_blocks);
#else
return Qnil;
#endif
}