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

Function getStoragePath

packages/components/src/storageUtils.ts:50–58  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

48 * Prepare storage path
49 */
50export const getStoragePath = (): string => {
51 const storagePath = process.env.BLOB_STORAGE_PATH
52 ? path.join(process.env.BLOB_STORAGE_PATH)
53 : path.join(getUserHome(), '.flowise', 'storage')
54 if (!fs.existsSync(storagePath)) {
55 fs.mkdirSync(storagePath, { recursive: true })
56 }
57 return storagePath
58}
59
60/**
61 * Get the storage type - local or cloud

Callers 2

getAllFilesFunction · 0.50
exportChatflowMessagesFunction · 0.50

Calls 1

getUserHomeFunction · 0.90

Tested by

no test coverage detected