nlink Returns the number of hard links to this file. : nlink « File Directory « Ruby






nlink Returns the number of hard links to this file.


File.stat("testfile").nlink  
File.link("testfile", "testfile.bak")
File.stat("testfile").nlink  

 

Related examples in the same category