MCPcopy Create free account
hub / github.com/CloudPolis/webdav-client-python / parse

Method parse

webdav/client.py:186–194  ·  view source on GitHub ↗
(response)

Source from the content-addressed store, hash-verified

184 def list(self, remote_path=root):
185
186 def parse(response):
187
188 try:
189 response_str = response.getvalue()
190 tree = etree.fromstring(response_str)
191 hrees = [unquote(hree.text) for hree in tree.findall(".//{DAV:}href")]
192 return [Urn(hree) for hree in hrees]
193 except etree.XMLSyntaxError:
194 return list()
195
196 try:
197 directory_urn = Urn(remote_path, directory=True)

Callers

nothing calls this directly

Calls 3

UrnClass · 0.90
MethodNotSupportedClass · 0.85

Tested by

no test coverage detected