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

Function getConfigPath

nezha/nezha.ts:86–92  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

84
85let configCache: NeZhaConfig | null = null;
86let configDir: string = "";
87let configFile: string = "";
88
89function getConfigPath(): string {
90 if (!configDir) {
91 configDir = createDirectoryInAssets("nezha");
92 configFile = path.join(configDir, "config.json");
93 }
94 return configFile;
95}

Callers 2

loadConfigFunction · 0.85
saveConfigFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected