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

Function cleanupTempFile

outdated/gpt/gpt.ts:564–572  ·  view source on GitHub ↗
(filePath?: string)

Source from the content-addressed store, hash-verified

562
563// 清理临时文件
564async function cleanupTempFile(filePath?: string): Promise<void> {
565 if (filePath) {
566 try {
567 await fs.promises.unlink(filePath);
568 } catch {
569 // 忽略清理错误
570 }
571 }
572}
573
574// 主处理函数
575async function handleGptRequest(msg: Api.Message): Promise<void> {

Callers 1

handleGptRequestFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected