MCPcopy Create free account
hub / github.com/DeusData/codebase-memory-mcp / fingerprint

Method fingerprint

tests/test_coverage_terminal.py:118–126  ·  view source on GitHub ↗
(self, path)

Source from the content-addressed store, hash-verified

116 return self.common.ANSI.sub("", self.common.read_log(directory, record, kind))
117
118 def fingerprint(self, path):
119 value = path.lstat()
120 require(stat.S_ISREG(value.st_mode) and value.st_nlink == 1 and value.st_uid == os.geteuid(),
121 "owned seed/profile is not a private regular file")
122 identity = self.common.identity(path)
123 identity.update({"device": value.st_dev, "inode": value.st_ino,
124 "mode": stat.S_IMODE(value.st_mode), "owner": value.st_uid,
125 "links": value.st_nlink})
126 return identity
127
128 def inventory(self, directory):
129 names = []

Callers 3

caseMethod · 0.95
restore_seed_modeMethod · 0.95
printOfFunction · 0.80

Calls 2

updateMethod · 0.80
requireFunction · 0.70

Tested by

no test coverage detected