mode Returns an integer representing the permission bits. : mode « File Directory « Ruby






mode Returns an integer representing the permission bits.


File.chmod(0644, "testfile")  
File.stat("testfile").mode.to_s(8) 

 

Related examples in the same category