File.rename(old_name, new_name) รข 0
Class Public methods
Renames the given file to the new name. Raises a
SystemCallError
if the file cannot be renamed.
File.rename("afile", "afile.bak") #=> 0
Renames the given file to the new name. Raises a
SystemCallError
if the file cannot be renamed.
File.rename("afile", "afile.bak") #=> 0
Please login to continue.