report method
Future<WebDavMultistatus>
report(
- PathUri path,
- WebDavOcFilterRules filterRules, {
- WebDavPropWithoutValues? prop,
Runs the filter-files report with the filterRules
on the resource at path
.
prop
specifies which props will be returned in the response.
See:
- https://docs.nextcloud.com/server/latest/developer_manual/client_apis/WebDAV/basic.html#listing-favorites for more information.
- report_Request for the request sent by this method.
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);
}