MCPcopy
hub / github.com/ollm/OpenComic / download

Function download

scripts/server-client.js:157–169  ·  view source on GitHub ↗
(path, config = {}, callbackWhenFileDownload = false)

Source from the content-addressed store, hash-verified

155}
156
157async function download(path, config = {}, callbackWhenFileDownload = false)
158{
159 let adress = getTypeAdress(path);
160
161 clearTimeout(closeServersST[adress]);
162 closeServerST(adress);
163
164 if(servers[adress])
165 return servers[adress].download(path, config, callbackWhenFileDownload);
166
167 servers[adress] = new client(adress);
168 return servers[adress].download(path, config, callbackWhenFileDownload);
169}
170
171var globalIsDownloading = {};
172

Callers

nothing calls this directly

Calls 2

getTypeAdressFunction · 0.85
closeServerSTFunction · 0.85

Tested by

no test coverage detected