MCPcopy Create free account
hub / github.com/ChatLab/ChatLab / cleanupTempFile

Function cleanupTempFile

packages/parser/src/formats/shuakami-qq-preprocessor.ts:356–364  ·  view source on GitHub ↗

* 清理临时文件

(filePath: string)

Source from the content-addressed store, hash-verified

354 * 清理临时文件
355 */
356function cleanupTempFile(filePath: string): void {
357 try {
358 if (fs.existsSync(filePath) && filePath.includes(getTempDir())) {
359 fs.unlinkSync(filePath)
360 }
361 } catch {
362 // 忽略清理错误
363 }
364}
365
366/**
367 * QQ Chat Exporter 预处理器

Callers

nothing calls this directly

Calls 1

getTempDirFunction · 0.70

Tested by

no test coverage detected