renameSync method

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

Synchronously renames this file system entity.

Returns a FileSystemEntity instance for the renamed entity.

Implementation

@override
file.Directory renameSync(String newPath) {
  fs.renameSync(path, newPath);
  return Directory(newPath);
}