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

Method getDbFile

src/Site/SiteStorage.py:40–45  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

38 raise Exception("Directory not exists: %s" % self.directory)
39
40 def getDbFile(self):
41 if self.isFile("dbschema.json"):
42 schema = self.loadJson("dbschema.json")
43 return schema["db_file"]
44 else:
45 return False
46
47 # Create new databaseobject with the site's schema
48 def openDb(self, close_idle=False):

Callers 1

hashFilesMethod · 0.80

Calls 2

isFileMethod · 0.95
loadJsonMethod · 0.95

Tested by

no test coverage detected