renameFileSync abstract method

void renameFileSync(
  1. String oldPath,
  2. String newPath
)

Renames/moves a file from one path to another synchronously.

Throws an Exception if oldPath doesn't exist.

Implementation

void renameFileSync(String oldPath, String newPath);