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

Function makeFormDir

apps/desktop/src/main/databases.ts:265–266  ·  view source on GitHub ↗
(name: string)

Source from the content-addressed store, hash-verified

263 const dirAbs = cleanSub ? path.join(topAbs, cleanSub) : topAbs
264 const dirRel = toPosix(path.relative(root, dirAbs))
265 const makeFormDir = (name: string): string =>
266 dirRel ? `${dirRel}/${name}${FORM_DIR_SUFFIX}` : `${name}${FORM_DIR_SUFFIX}`
267 // Resolve a non-colliding `<Name>.base` folder under the directory.
268 let formDirRel = makeFormDir(baseName)
269 let n = 2

Callers 2

createDatabaseFunction · 0.70
renameDatabaseFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected