MCPcopy Create free account
hub / github.com/VectifyAI/OpenKB / _file_key

Function _file_key

openkb/mutation.py:276–278  ·  view source on GitHub ↗
(path: Path)

Source from the content-addressed store, hash-verified

274 """
275
276 def _file_key(path: Path) -> tuple[int, int]:
277 st = path.stat() # follows symlinks; these trees hold regular files only
278 return (st.st_dev, st.st_ino)
279
280 backup_files = {p.relative_to(backup): p for p in backup.rglob("*") if p.is_file()}
281

Callers 1

_restore_hardlinked_dirFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected