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

Function commentsNotePath

apps/desktop/src/main/watcher.ts:33–37  ·  view source on GitHub ↗
(root: string, abs: string)

Source from the content-addressed store, hash-verified

31}
32
33function commentsNotePath(root: string, abs: string): string | null {
34 const rel = relativeVaultPath(root, abs)
35 if (!rel.startsWith(NOTE_COMMENTS_PREFIX) || !rel.endsWith(NOTE_COMMENTS_SUFFIX)) return null
36 return rel.slice(NOTE_COMMENTS_PREFIX.length, -NOTE_COMMENTS_SUFFIX.length)
37}
38
39export class VaultWatcher {
40 private watcher: FSWatcher | null = null

Callers 1

handlerMethod · 0.85

Calls 1

relativeVaultPathFunction · 0.85

Tested by

no test coverage detected