(src, dst)
| 20 | |
| 21 | |
| 22 | def wd_publish(src, dst): |
| 23 | logger.info(f"Publish form {src} to {dst} with options {WD_OPTIONS}.") |
| 24 | client = wc.Client(WD_OPTIONS) |
| 25 | tmp = f"{dst[:-1]}__/" if dst[-1] == "/" else f"{dst}__" |
| 26 | client.upload_sync(local_path=src, remote_path=tmp) |
| 27 | client.move(remote_path_from=tmp, remote_path_to=dst) |