Name

safelyRenameFile — Rename a file to a backup, and then rename the replacement.

Syntax

safelyRenameFile ( String original , String backup , String replacement ) 

The command has the following arguments:

original

the original file to be replaced

backup

the name of the backup file

replacement

the file to be renamed to the original

Description

Rename a file to a backup, and then rename the replacement. Try to undo the changes if any of the moves do not work.