moveTorrents method

Future<void> moveTorrents(
  1. List<int> ids,
  2. String location,
  3. {bool move = false}
)

Move torrents by their given ids ids integer identifier list of the torrents to remove location new location to move the torrent move if true, move from previous location otherwise, search "location" for files, default false Throws TransmissionException if errors

Implementation

Future<void> moveTorrents(
  List<int> ids,
  String location, {
  bool move = false,
}) async {
  final results = await _dio.post('/',
      data: _Request(methodMoveTorrent, arguments: {
        'ids': ids,
        'location': location,
        'move': move,
      }).toJSON());
  _checkResults(_Response.fromJSON(results.data));
}