renameSync method
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);
}