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

Function relativeVaultPath

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

Source from the content-addressed store, hash-verified

23}
24
25function relativeVaultPath(root: string, abs: string): string {
26 return toPosix(path.relative(root, abs))
27}
28
29function isVaultSettingsPath(root: string, abs: string): boolean {
30 return relativeVaultPath(root, abs) === VAULT_SETTINGS_RELATIVE_PATH

Callers 3

isVaultSettingsPathFunction · 0.85
commentsNotePathFunction · 0.85
startMethod · 0.85

Calls 1

toPosixFunction · 0.70

Tested by

no test coverage detected