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

Method cleanupFiles

rev/rev.ts:337–347  ·  view source on GitHub ↗
(paths: string[])

Source from the content-addressed store, hash-verified

335 await this.safeEditMessage(msg, '✅ 媒体已处理完成');
336 }
337 }
338
339 private cleanupFiles(paths: string[]) {
340 for (const filePath of paths) {
341 try {
342 if (fs.existsSync(filePath)) {
343 fs.unlinkSync(filePath);
344 }
345 } catch (err) {
346 console.warn('清理临时文件失败', err);
347 }
348 }
349 }
350

Callers 1

Calls 1

warnMethod · 0.80

Tested by

no test coverage detected