report method

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

Optionally populates the props 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(),
        ),
      ),
    );