renameSync method

  1. @override
Link renameSync(
  1. String newPath
)
override

Synchronously renames this link.

Returns a Link instance for the renamed link.

If newPath identifies an existing file or link, that entity is removed first. If newPath identifies an existing directory then FileSystemException is thrown.

Implementation

@override
Link renameSync(String newPath) => link.renameSync(newPath);