MCPcopy Index your code
hub / github.com/OpenSIST/OpenSIST.github.io / getFileObject

Function getFileObject

src/Data/FileData.js:19–26  ·  view source on GitHub ↗
(fileId)

Source from the content-addressed store, hash-verified

17}
18
19export async function getFileObject(fileId) {
20 const file = await getFile(fileId);
21 const content = await getFileContent(fileId);
22 return {
23 ...file,
24 Content: content,
25 };
26}
27
28export async function getFileContent(fileId) {
29 const response = await apiRequest(GET_FILE_CONTENT, {body: {PostID: fileId}});

Callers

nothing calls this directly

Calls 2

getFileFunction · 0.85
getFileContentFunction · 0.85

Tested by

no test coverage detected