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

Method cleanupFiles

gif/gif.ts:445–455  ·  view source on GitHub ↗
(files: string[])

Source from the content-addressed store, hash-verified

443 return new Promise(resolve => setTimeout(resolve, ms));
444 }
445
446 private cleanupFiles(files: string[]): void {
447 files.forEach(file => {
448 try {
449 if (fs.existsSync(file)) {
450 fs.unlinkSync(file);
451 }
452 } catch (e) {
453 console.warn(`清理文件失败: ${file}`, e);
454 }
455 });
456 }
457}
458

Callers 1

convertToStickerMethod · 0.95

Calls 1

warnMethod · 0.80

Tested by

no test coverage detected