Description
Rename a file on the hard drive. If the destination path is different from the source, the source file will be deleted.
This is the equivalent of the move function in the File Explorer, or a CUT / PASTE command on the hard drive.
Syntax
designer.renameFile("FILE SOURCE", "FILE DESTINATION");
Parameters
Parameter | Type | Description |
---|---|---|
FILE SOURCE |
String | Filepath to the source file |
FILE DESTINATION |
String | Filepath to the new file to create |
Return
This function does not return anything.
Need more help with this?
Don’t hesitate to contact us here.