MCPcopy
hub / github.com/HelloZeroNet/ZeroNet / read

Method read

src/Site/SiteStorage.py:222–223  ·  view source on GitHub ↗
(self, inner_path, mode="rb")

Source from the content-addressed store, hash-verified

220
221 # Open file object
222 def read(self, inner_path, mode="rb"):
223 return open(self.getPath(inner_path), mode).read()
224
225 # Write content to file
226 def write(self, inner_path, content):

Callers 1

publisherMethod · 0.45

Calls 1

getPathMethod · 0.95

Tested by

no test coverage detected