Mega Code Archive

 
Categories / Ruby / File Directory
 

Mode Returns an integer representing the permission bits

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