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

Method reinit

zpr/zpr.ts:154–159  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

152 this.initialized = false;
153 this.db = null;
154 await this.init();
155 }
156
157 private static async createBackup(): Promise<void> {
158 try {
159 const configExists = await fs.access(this.configPath).then(() => true).catch(() => false);
160 if (configExists) {
161 await fs.copyFile(this.configPath, this.backupPath);
162 console.log("[zpr] 配置备份创建成功");

Callers 1

setupMethod · 0.80

Calls 1

initMethod · 0.95

Tested by

no test coverage detected