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

Function toPosixPath

packages/shared-domain/src/databases.ts:41–41  ·  view source on GitHub ↗
(p: string)

Source from the content-addressed store, hash-verified

39export const FORM_PAGES_DIR = 'pages'
40
41const toPosixPath = (p: string): string => p.replace(/\\/g, '/')
42const lastSegment = (p: string): string => {
43 const s = toPosixPath(p)
44 return s.slice(s.lastIndexOf('/') + 1)

Callers 7

lastSegmentFunction · 0.85
formDirFromCsvPathFunction · 0.85
csvPathForFormDirFunction · 0.85
formDirContainingFunction · 0.85
isDatabaseInternalPathFunction · 0.85
isDatabaseCsvPathFunction · 0.85
databaseCsvPathForFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected