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

Function normalizeVaultRelativePath

apps/desktop/src/main/vault.ts:1438–1441  ·  view source on GitHub ↗
(rel: string)

Source from the content-addressed store, hash-verified

1436}
1437
1438function normalizeVaultRelativePath(rel: string): string {
1439 const normalized = toPosix(path.normalize(rel)).replace(/^(\.\/)+/, '')
1440 return normalized === '.' ? '' : normalized
1441}
1442
1443function markdownDestination(p: string): string {
1444 return `<${p.replace(/>/g, '%3E')}>`

Callers 5

folderForRelativePathFunction · 0.85
assertAssetFileFunction · 0.85
cleanAssetTargetDirFunction · 0.85
cleanDeletedAssetPathFunction · 0.85

Calls 1

toPosixFunction · 0.70

Tested by

no test coverage detected