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

Function isFormDirName

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

Source from the content-addressed store, hash-verified

46
47/** True when a folder name (or a path's last segment) marks a database folder. */
48export function isFormDirName(nameOrPath: string): boolean {
49 return lastSegment(nameOrPath).toLowerCase().endsWith(FORM_DIR_SUFFIX)
50}
51
52/**
53 * The database folder path for a `data.csv` path, or null when `csvPath` isn't a

Callers 9

databases.test.tsFile · 0.90
SidebarFunction · 0.90
SubTreeFunction · 0.90
listDatabaseLinkTargetsFunction · 0.90
walkFunction · 0.90
walkFunction · 0.90
listDatabasesFunction · 0.90
formDirFromCsvPathFunction · 0.70
databaseCsvPathForFunction · 0.70

Calls 1

lastSegmentFunction · 0.85

Tested by

no test coverage detected