Skip to content

Latest commit

 

History

History
23 lines (17 loc) · 615 Bytes

file.rename.md

File metadata and controls

23 lines (17 loc) · 615 Bytes

file.rename

The rename function is established to rename a file or folder.

Sample

file.rename("myFolder/myFile.txt","yourFile.txt");
file.rename("myFolder","yourFolder");

API

CallingReturning
file . rename ( orgPath, newName )
ParametersTypeDescription
orgPathStringThe relative file or folder path to the storage for renaming.
newNameStringA new file or folder name.