MCPcopy
hub / github.com/RUB-NDS/PRET / retrieve_data

Method retrieve_data

pcl.py:154–157  ·  view source on GitHub ↗
(self, id)

Source from the content-addressed store, hash-verified

152 return c.NONEXISTENT
153
154 def retrieve_data(self, id):
155 str_send = "&f" + id + "Y" # set macro id
156 str_send += c.ESC + "&f2X" # execute macro
157 return self.echo2data(self.cmd(str_send))
158
159 # ------------------------[ put <local file> ]------------------------
160 def put(self, path, data):

Callers 2

dirlistMethod · 0.95
getMethod · 0.95

Calls 2

echo2dataMethod · 0.95
cmdMethod · 0.95

Tested by

no test coverage detected