Rename a file : rename « File Directory « Ruby






Rename a file


File.rename("file1.txt", "file2.txt")

 

Related examples in the same category