ES2.Rename

public static void Rename(string path, string newPath, ES2Settings settings=null)

Parameters

[table th=”0″]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.”[/table]

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#

// 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

// 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");