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

Function getStoragePath

packages/components/src/storage/BaseStorageProvider.ts:62–71  ·  view source on GitHub ↗

* Shared utility for getting the base storage path

()

Source from the content-addressed store, hash-verified

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)

Callers

nothing calls this directly

Calls 1

getUserHomeFunction · 0.90

Tested by

no test coverage detected