MCPcopy Create free account
hub / github.com/chatmail/core / read_path

Method read_path

python/src/deltachat/testplugin.py:257–261  ·  view source on GitHub ↗
(self, bn, mode="r")

Source from the content-addressed store, hash-verified

255 return None
256
257 def read_path(self, bn, mode="r"):
258 fn = self.get_path(bn)
259 if fn is not None:
260 with open(fn, mode) as f:
261 return f.read()
262
263 return Data()
264

Callers 2

_preconfigure_keyMethod · 0.45

Calls 1

get_pathMethod · 0.95

Tested by

no test coverage detected