sftpRename method
Renames a directory using SFTP.
await client.sftpRename(
oldPath: "testfile",
newPath: "newtestfile",
);
Implementation
Future<String?> sftpRename({
required String oldPath,
required String newPath,
}) async {
var result = await _channel.invokeMethod('sftpRename', {
"id": id,
"oldPath": oldPath,
"newPath": newPath,
});
return result;
}