MCPcopy
hub / github.com/FlowiseAI/Flowise / getFileFromStorage

Function getFileFromStorage

packages/components/src/storageUtils.ts:37–40  ·  view source on GitHub ↗
(file: string, ...paths: string[])

Source from the content-addressed store, hash-verified

35}
36
37export const getFileFromStorage = async (file: string, ...paths: string[]): Promise<Buffer> => {
38 const provider = StorageProviderFactory.getProvider()
39 return provider.getFileFromStorage(file, ...paths)
40}
41
42export const getFilesListFromStorage = async (...paths: string[]): Promise<FileInfo[]> => {
43 const provider = StorageProviderFactory.getProvider()

Callers 15

loadOpenApiSpecMethod · 0.90
initMethod · 0.90
getFileDataMethod · 0.90
initMethod · 0.90
initMethod · 0.90
getFileDataMethod · 0.90
initMethod · 0.90
initMethod · 0.90
getFileDataMethod · 0.90
initMethod · 0.90
initMethod · 0.90
initMethod · 0.90

Calls 2

getProviderMethod · 0.80
getFileFromStorageMethod · 0.65

Tested by

no test coverage detected