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

Method writeJson

src/Site/SiteStorage.py:330–332  ·  view source on GitHub ↗
(self, inner_path, data)

Source from the content-addressed store, hash-verified

328
329 # Write formatted json file
330 def writeJson(self, inner_path, data):
331 # Write to disk
332 self.write(inner_path, helper.jsonDumps(data).encode("utf8"))
333
334 # Get file size
335 def getSize(self, inner_path):

Callers 12

actionFileDeleteMethod · 0.80
cloneMethod · 0.80
signMethod · 0.80
testNewFileMethod · 0.80
testCloneMethod · 0.80
testBigUpdateMethod · 0.80
createIncludeMethod · 0.80
testIncludeChangeMethod · 0.80
testOptionalDeleteMethod · 0.80
testOptionalRenameMethod · 0.80
actionBigfileUploadMethod · 0.80
actionFileDeleteMethod · 0.80

Calls 1

writeMethod · 0.95

Tested by

no test coverage detected