renameSync method Null safety
- String newPath
Synchronously renames this link. Returns a Link instance for the renamed link.
newPath identifies an existing link, that link is
newPath identifies an existing file or directory
the operation fails and an exception is thrown.
Link renameSync(String newPath);