def copy(<EOL>self,<EOL>source,<EOL>destination,<EOL>body=None,<EOL>depth="<STR_LIT>",<EOL>overwrite=True,<EOL>headers=None,<EOL>):
<EOL>assert body is None or is_bytes(body)<EOL>if headers is None:<EOL><INDENT>headers = {"<STR_LIT>": destination}<EOL><DEDENT>else:<EOL><INDENT>headers["<STR_LIT>"] = self._url.geturl() + destination<EOL><DEDENT>if overwrite is False:<EOL><INDENT>headers["<STR_LIT>"] = "<STR_LIT:F>"<EOL><DEDENT>headers["<STR_LIT>"] = depth<EOL>self._request("<STR_LIT>", source, body=body, headers=headers)<EOL>
Copy DAV resource