renameSync abstract method

File renameSync(
  1. String newPath
)

Synchronously rename this file. Return a File instance for the renamed file.

The newPath must be absolute and normalized.

If newPath identifies an existing file, that file is replaced. If newPath identifies an existing resource the operation might fail and an exception is thrown.

Implementation

File renameSync(String newPath);