report method
Future<WebDavMultistatus>
report(
- PathUri path,
- WebDavOcFilterRules filterRules, {
- WebDavPropWithoutValues? prop,
Runs the filter-files report with the filterRules
on the resource at path
.
Optionally populates the prop
s on the returned resources.
See https://github.com/owncloud/docs/issues/359 for more information.
Implementation
Future<WebDavMultistatus> report(
PathUri path,
WebDavOcFilterRules filterRules, {
WebDavPropWithoutValues? prop,
}) async =>
_parseResponse(
await _send(
'REPORT',
_constructUri(path),
data: utf8.encode(
WebDavOcFilterFiles(
filterRules: filterRules,
prop: prop ?? const WebDavPropWithoutValues(), // coverage:ignore-line
).toXmlElement(namespaces: namespaces).toXmlString(),
),
),
);