link method

Future<void> link(
  1. String linkPath,
  2. String targetPath
)

Creates a symbolic link at targetPath that points to linkPath.

Implementation

Future<void> link(String linkPath, String targetPath) async {
  final reply = await _sendSymlink(linkPath, targetPath);
  if (reply is! SftpStatusPacket) throw SftpError('Unexpected reply');
  SftpStatusError.check(reply);
}