(path, _realPath)
| 139 | } |
| 140 | |
| 141 | async 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 | |
| 157 | async function download(path, config = {}, callbackWhenFileDownload = false) |
| 158 | { |
nothing calls this directly
no test coverage detected