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

Method cleanupTempFiles

convert/convert.ts:236–246  ·  view source on GitHub ↗
(...files: (string | undefined)[])

Source from the content-addressed store, hash-verified

234 fs.unlinkSync(file);
235 } catch (err) {
236 console.debug(`Failed to delete temp file ${path.basename(file)}:`, err);
237 }
238 }
239 }
240 }
241
242 cleanupAllTempFiles(): void {
243 try {
244 const files = fs.readdirSync(this.tempDir);
245 for (const file of files) {
246 fs.unlinkSync(path.join(this.tempDir, file));
247 }
248 } catch (error) {
249 console.debug("Error cleaning up temp directory:", error);

Callers 1

handleVideoConversionMethod · 0.80

Calls 1

debugMethod · 0.80

Tested by

no test coverage detected