MCPcopy Create free account
hub / github.com/comaps/comaps / wd_publish

Function wd_publish

tools/python/airmaps/instruments/storage.py:22–27  ·  view source on GitHub ↗
(src, dst)

Source from the content-addressed store, hash-verified

20
21
22def 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)

Callers

nothing calls this directly

Calls 1

moveMethod · 0.45

Tested by

no test coverage detected