MCPcopy Create free account
hub / github.com/MCSManager/MCSManager / downloadFile

Function downloadFile

frontend/src/hooks/useFileManager.ts:923–927  ·  view source on GitHub ↗
(fileName: string)

Source from the content-addressed store, hash-verified

921 };
922
923 const downloadFile = async (fileName: string) => {
924 const link = await getFileLink(fileName);
925 if (!link) throw new Error(t("TXT_CODE_6d772765"));
926 window.open(link);
927 };
928
929 const stopDownloadFileFromUrl = async (taskId: string) => {
930 const { execute } = downloadFromUrlStopApi();

Callers

nothing calls this directly

Calls 2

getFileLinkFunction · 0.85
openMethod · 0.80

Tested by

no test coverage detected