MCPcopy Index your code
hub / github.com/ollm/OpenComic / read

Function read

scripts/server-client.js:141–155  ·  view source on GitHub ↗
(path, _realPath)

Source from the content-addressed store, hash-verified

139}
140
141async function read(path, _realPath)
142{
143 _realPath = _realPath || fileManager.realPath(path, -1);
144
145 let adress = getTypeAdress(path);
146
147 clearTimeout(closeServersST[adress]);
148 closeServerST(adress);
149
150 if(servers[adress])
151 return servers[adress].read(path);
152
153 servers[adress] = new client(adress);
154 return servers[adress].read(path);
155}
156
157async function download(path, config = {}, callbackWhenFileDownload = false)
158{

Callers

nothing calls this directly

Calls 2

getTypeAdressFunction · 0.85
closeServerSTFunction · 0.85

Tested by

no test coverage detected