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

Function normalizeToolPath

apps/desktop/src/main/vault.ts:1662–1668  ·  view source on GitHub ↗
(value: string | null | undefined)

Source from the content-addressed store, hash-verified

1660}
1661
1662function normalizeToolPath(value: string | null | undefined): string | null {
1663 const trimmed = value?.trim()
1664 if (!trimmed) return null
1665 if (trimmed === '~') return app.getPath('home')
1666 if (trimmed.startsWith('~/')) return path.join(app.getPath('home'), trimmed.slice(2))
1667 return trimmed
1668}
1669
1670function normalizeVaultTextSearchToolPaths(
1671 paths: VaultTextSearchToolPaths | null | undefined

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected