You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
filename - an absolute or relative path to the file
newName - the new name (optional)
Returns: Promise, resolving to the new file
ASYNCHRONOUS
Renames the file to the new name. It's a bit naive, since it uses the current working directory as the parent directory, so if the file is not in the current working directory, it's liable to be moved there.
Usage
aFileManager.renameFile ( "fileA.txt", "fileB.txt" )
.then ( ... )
.catch ( function ( e ) { console.log ( e ); }
.done ();