nlink()
public
Returns the number of hard links to stat.
File.stat("testfile").nlink
File.link("testfile", "testfile.bak")
File.stat("testfile").nlink
Show source
/*
* call-seq:
* stat.nlink => fixnum
*
* Returns the number of hard links to <i>stat</i>.
*
* File.stat("testfile").nlink
* File.link("testfile", "testfile.bak")
* File.stat("testfile").nlink
*
*/
static VALUE
rb_stat_nlink(self)
VALUE self;
{
return UINT2NUM(get_stat(self)->st_nlink);
}