The rename function is established to rename a file or folder.
file.rename("myFolder/myFile.txt","yourFile.txt");
file.rename("myFolder","yourFolder");
Calling | Returning |
---|---|
file . rename ( orgPath, newName ) |
Parameters | Type | Description |
---|---|---|
orgPath | String | The relative file or folder path to the storage for renaming. |
newName | String | A new file or folder name. |