ES2.Rename
Parameters
path | The path of the file we want to rename. |
newPath |
The new path and name of our file after being renamed. |
settings |
Optional. A user-created ES2Settings object containing options not specified in path. |
Description
Renames or moves a file from one path to another.
Note: This can be a relative or absolute path, but cannot be a tag.
C#
1 2 3 4 |
// Save a file to a sub-folder. ES2.Save(123, "myFolder/file1.txt"); // Rename the file to 'file2.txt' and move it to 'anotherFolder'. ES2.Rename("myFolder/file1.txt", "anotherFolder/file2.txt"); |
JS
1 2 3 4 |
// Save a file to a sub-folder. ES2.Save(123, "myFolder/file1.txt"); // Rename the file to 'file2.txt' and move it to 'anotherFolder'. ES2.Rename("myFolder/file1.txt", "anotherFolder/file2.txt"); |