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

Method cleanupTempDirectory

save/save.ts:678–690  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

676 await Promise.all(
677 entries.map(async (entry) => {
678 const filePath = path.join(this.tempDir, entry);
679 try {
680 await fs.unlink(filePath);
681 } catch {}
682 })
683 );
684 } catch {}
685 }
686
687 private async saveMediaToLocal(
688 sourceMsg: Api.Message,
689 sourceChatId: string,
690 sourceMessageId: number,
691 replyMsg?: Api.Message,
692 index: number = 0,
693 options?: { groupDirName?: string }

Callers 1

cleanupMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected