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

Function toPosix

apps/desktop/src/main/watcher.ts:13–15  ·  view source on GitHub ↗
(p: string)

Source from the content-addressed store, hash-verified

11const NOTE_COMMENTS_SUFFIX = '.comments.json'
12
13function toPosix(p: string): string {
14 return p.split(path.sep).join('/')
15}
16
17function folderOf(root: string, abs: string): NoteFolder | null {
18 const rel = toPosix(path.relative(root, abs))

Callers 4

folderOfFunction · 0.70
relativeVaultPathFunction · 0.70
handlerMethod · 0.70
dirHandlerMethod · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected