The command filesystem.renamefile is used to rename a file.
- oldname [string]
Current name of the file.
- newname [string]
New name, that will replace the current one.
- variablereturn [integer]
Variable that will store the return code, where:
- 0: File was renamed
- -1: File does not exist
In the example above, the file called file_temp.dat was renamed to file.dat.