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

Function stopDownloadFileFromUrl

frontend/src/hooks/useFileManager.ts:929–945  ·  view source on GitHub ↗
(taskId: string)

Source from the content-addressed store, hash-verified

927 };
928
929 const stopDownloadFileFromUrl = async (taskId: string) => {
930 const { execute } = downloadFromUrlStopApi();
931 try {
932 await execute({
933 params: {
934 uuid: instanceId || "",
935 daemonId: daemonId || ""
936 },
937 data: {
938 taskId: taskId
939 }
940 });
941 await getFileList();
942 } catch (error: any) {
943 reportErrorMsg(error.message);
944 }
945 };
946
947 const handleChangeDir = async (dir: string) => {
948 if (!dir) return;

Callers

nothing calls this directly

Calls 3

reportErrorMsgFunction · 0.90
executeFunction · 0.85
getFileListFunction · 0.85

Tested by

no test coverage detected