updateSync method
Synchronously updates the link. Calling updateSync on a non-existing link will throw an exception.
On the Windows platform, this will only work with directories, and the target directory must exist.
Implementation
void updateSync(String target);