File Directory Ruby

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