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

Function toPosix

apps/desktop/src/main/vault.ts:1434–1436  ·  view source on GitHub ↗
(p: string)

Source from the content-addressed store, hash-verified

1432}
1433
1434function toPosix(p: string): string {
1435 return p.split(path.sep).join('/')
1436}
1437
1438function normalizeVaultRelativePath(rel: string): string {
1439 const normalized = toPosix(path.normalize(rel)).replace(/^(\.\/)+/, '')

Callers 15

noteCommentsPathFunction · 0.70
databaseDataPathFunction · 0.70
databaseSidecarPathFunction · 0.70
moveIntoAssetsFunction · 0.70
readMetaFunction · 0.70
readNoteCommentsFunction · 0.70
writeNoteCommentsFunction · 0.70
assetMetaForPathFunction · 0.70
createNoteFunction · 0.70
createExcalidrawFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected