()
| 286 | } |
| 287 | |
| 288 | const 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 | |
| 296 | const normalizePlatformPath = (p: string): string => { |
| 297 | const n = path.normalize(p) |
no test coverage detected