MCPcopy Create free account
hub / github.com/ChatLab/ChatLab / hasChatLabUserDataStructure

Function hasChatLabUserDataStructure

packages/node-runtime/src/data-dir-switch.ts:104–106  ·  view source on GitHub ↗
(entries: string[])

Source from the content-addressed store, hash-verified

102}
103
104function hasChatLabUserDataStructure(entries: string[]): boolean {
105 return entries.includes(CHATLAB_MARKER_FILE) && USER_DATA_REQUIRED_DIRS.every((dir) => entries.includes(dir))
106}
107
108function hasChatLabDatabaseFiles(dirPath: string, entries?: string[]): boolean {
109 const dirEntries = entries ?? fs.readdirSync(dirPath)

Callers 2

isExistingUserDataDirFunction · 0.85
isUserDataDirSafeToUseFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected