absolute method

Future<String> absolute(
  1. String path
)

Returns the absolute path of path.

Implementation

Future<String> absolute(String path) async {
  final reply = await _sendRealPath(path);
  if (reply is SftpNamePacket) return reply.names.first.filename;
  if (reply is! SftpStatusPacket) throw SftpError('Unexpected reply');
  throw SftpStatusError.fromStatus(reply);
}