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

Method header

webdav/client.py:552–561  ·  view source on GitHub ↗
(remote_path_to)

Source from the content-addressed store, hash-verified

550 def copy(self, remote_path_from, remote_path_to):
551
552 def header(remote_path_to):
553
554 path = Urn(remote_path_to).path()
555 destination = "{root}{path}".format(root=self.webdav.root, path=path)
556 header_item = "Destination: {destination}".format(destination=destination)
557
558 header = self.get_header('copy')
559 header.append(header_item)
560
561 return header
562
563 try:
564 urn_from = Urn(remote_path_from)

Callers

nothing calls this directly

Calls 3

get_headerMethod · 0.95
UrnClass · 0.90
pathMethod · 0.80

Tested by

no test coverage detected