MCPcopy Index your code
hub / github.com/ZenNotes/zennotes / normalizeRoot

Function normalizeRoot

apps/desktop/src/main/window-vaults.ts:160–162  ·  view source on GitHub ↗
(root: string)

Source from the content-addressed store, hash-verified

158}
159
160function normalizeRoot(root: string): string {
161 return path.resolve(root)
162}
163
164function isPathInsideRoot(absPath: string, root: string): boolean {
165 return absPath === root || absPath.startsWith(root + path.sep)

Callers 5

setLocalVaultMethod · 0.85
setRemoteVaultMethod · 0.85
clearWindowMethod · 0.85
localVaultsExceptMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected