(self, remote_path)
| 303 | raise NotConnection(self.webdav.hostname) |
| 304 | |
| 305 | def mkdir(self, remote_path): |
| 306 | |
| 307 | try: |
| 308 | directory_urn = Urn(remote_path, directory=True) |
| 309 | |
| 310 | if not self.check(directory_urn.parent()): |
| 311 | raise RemoteParentNotFound(directory_urn.path()) |
| 312 | |
| 313 | url = {'hostname': self.webdav.hostname, 'root': self.webdav.root, 'path': directory_urn.quote()} |
| 314 | options = { |
| 315 | 'URL': "{hostname}{root}{path}".format(**url), |
| 316 | 'CUSTOMREQUEST': Client.requests['mkdir'], |
| 317 | 'HTTPHEADER': self.get_header('mkdir') |
| 318 | } |
| 319 | |
| 320 | request = self.Request(options=options) |
| 321 | |
| 322 | request.perform() |
| 323 | request.close() |
| 324 | |
| 325 | except pycurl.error: |
| 326 | raise NotConnection(self.webdav.hostname) |
| 327 | |
| 328 | def download_to(self, buff, remote_path): |
| 329 |
no test coverage detected