MCPcopy Index your code
hub / github.com/FlowiseAI/Flowise / getAllowedSQLiteBaseDirs

Function getAllowedSQLiteBaseDirs

packages/components/src/validator.ts:288–294  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

286}
287
288const getAllowedSQLiteBaseDirs = (): string[] => {
289 const dirs = [path.join(getUserHome(), '.flowise')]
290 if (process.env.DATABASE_PATH) {
291 dirs.push(path.resolve(process.env.DATABASE_PATH))
292 }
293 return dirs
294}
295
296const normalizePlatformPath = (p: string): string => {
297 const n = path.normalize(p)

Callers 1

validateSQLitePathFunction · 0.85

Calls 1

getUserHomeFunction · 0.90

Tested by

no test coverage detected