sftpRename method

Future<String?> sftpRename({
  1. required String oldPath,
  2. required String newPath,
})

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;
}