readProps method

Future<File> readProps(
  1. String path, [
  2. CancelToken? cancelToken
])

Read a single files properties

Implementation

Future<File> readProps(String path, [CancelToken? cancelToken]) async {
  path = fixSlashes(path);
  var resp = await this
      .c
      .wdPropfind(this, path, true, fileXmlStr, cancelToken: cancelToken);

  String str = resp.data;
  return WebdavXml.toFiles(path, str, skipSelf: false).first;
}