* Shared utility for getting the base storage path
()
| 60 | * Shared utility for getting the base storage path |
| 61 | */ |
| 62 | protected getStoragePath(): string { |
| 63 | const storagePath = process.env.BLOB_STORAGE_PATH |
| 64 | ? path.join(process.env.BLOB_STORAGE_PATH) |
| 65 | : path.join(getUserHome(), '.flowise', 'storage') |
| 66 | |
| 67 | if (!fs.existsSync(storagePath)) { |
| 68 | fs.mkdirSync(storagePath, { recursive: true }) |
| 69 | } |
| 70 | return storagePath |
| 71 | } |
| 72 | |
| 73 | /** |
| 74 | * Shared utility for validating chatflowId format (UUID) |
nothing calls this directly
no test coverage detected