MCPcopy Create free account
hub / github.com/ZenNotes/zennotes / noteMetaCacheKey

Function noteMetaCacheKey

apps/desktop/src/main/vault.ts:1702–1704  ·  view source on GitHub ↗
(root: string, abs: string)

Source from the content-addressed store, hash-verified

1700}
1701
1702function noteMetaCacheKey(root: string, abs: string): string {
1703 return `${path.resolve(root)}\0${path.resolve(abs)}`
1704}
1705
1706function sameMtimeMs(left: number, right: number): boolean {
1707 return Math.abs(left - right) < 0.001

Callers 4

snapshotNoteMetaCacheFunction · 0.85
invalidateNoteMetaCacheFunction · 0.85
readMetaFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected