MCPcopy Create free account
hub / github.com/TeleBoxOrg/TeleBox_Plugins / ensureDirectories

Function ensureDirectories

speedtest/speedtest.ts:180–183  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

178function readConfig(): SpeedtestConfig {
179 try {
180 if (fs.existsSync(SPEEDTEST_JSON)) {
181 const data = JSON.parse(fs.readFileSync(SPEEDTEST_JSON, "utf8"));
182 return data as SpeedtestConfig;
183 }
184 } catch (error: any) {
185 console.error("Failed to read config:", error);
186 }

Callers 2

writeConfigFunction · 0.70
downloadCliFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected