public native rename(newName as String) throws IOException
Renames the path.
The current instance path is updated when the operation succeeds.