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

Method upload

webdav/client.py:459–464  ·  view source on GitHub ↗
(self, remote_path, local_path, progress=None)

Source from the content-addressed store, hash-verified

457 raise NotConnection(self.webdav.hostname)
458
459 def upload(self, remote_path, local_path, progress=None):
460
461 if os.path.isdir(local_path):
462 self.upload_directory(local_path=local_path, remote_path=remote_path, progress=progress)
463 else:
464 self.upload_file(local_path=local_path, remote_path=remote_path, progress=progress)
465
466 def upload_directory(self, remote_path, local_path, progress=None):
467

Callers 2

upload_directoryMethod · 0.95
upload_syncMethod · 0.95

Calls 2

upload_directoryMethod · 0.95
upload_fileMethod · 0.95

Tested by

no test coverage detected