rename

Renaming file or directory.

Return

Operations result.

Parameters

file

The file or directory you want to rename.

newName

The new name.