report method

Runs the filter-files report with the filterRules on the resource at path.

prop specifies which props will be returned in the response.

See:

Implementation

Future<WebDavMultistatus> report(
  PathUri path,
  WebDavOcFilterRules filterRules, {
  WebDavPropWithoutValues? prop,
}) async {
  final request = report_Request(
    path,
    filterRules,
    prop: prop,
  );

  final streamedResponse = await httpClient.send(request);
  final response = await http.Response.fromStream(streamedResponse);
  if (streamedResponse.statusCode != 207) {
    throw DynamiteStatusCodeException(response);
  }

  return const WebDavResponseConverter().convert(response);
}