Mega Code Archive

 
Categories / Ruby / File Directory
 

Change mode and use system command to check

file = File.new( "books.txt", "w" ).chmod( 0755 ) system "ls -l books.txt"